DEV Community

Dev Bhamaria
Dev Bhamaria

Posted on AI-assisted

My redesign made my portfolio 52% heavier. Here is what I measured.

I redesigned my portfolio, devbhamaria.com. The old version had a 3D floppy disk on the home page. The new one has a 3D laptop, with a small working browser on its screen. Then I measured both. The new page is heavier, and I want to show by how much.

How I measured

Both versions ran from local copies on the same small static server, with gzip on. I loaded each one in Edge 155 with the cache off, waited for the load event plus 9 seconds, and added up the bytes that were actually transferred. I ran Lighthouse 13.5.0 three times on each version and took the median.

The old site is no longer live, so I measured it from the git commit just before the redesign. Absolute numbers will differ a little on the real domain, but both versions were measured the same way.

Page weight

Old New
Requests 14 21
Transferred about 836 KB about 1.24 MB

That is 442,233 bytes more, about 52%, and 7 more requests.

Almost all of it comes from one thing. The laptop screen shows a browser that moves around, and I made that with five JPEG pictures. They add up to 401,730 bytes. The old page had no JPEGs at all.

Lighthouse

Old New
Performance, desktop 87 84
Performance, mobile 48 57
Accessibility, Best practices, SEO 97, 100, 100 97, 100, 100

I would not say the new site is faster. Desktop went down a little. Mobile went up, but the three runs ranged from 43 to 57, so that is mostly noise. Mobile is low on both versions, with a Largest Contentful Paint of about 5 to 6.6 seconds in the simulated slow 4G run.

What I got wrong

The five laptop-screen pictures are also downloaded on phones, where the laptop screen is never used. On a phone that is 401,730 bytes of nothing. I measured it at 390 by 844 and it was the same 21 requests and 1,298,124 bytes.

What stayed the same

Both versions make zero requests to other domains, set zero cookies and print zero console errors. There is no framework and no build step. Three.js draws the 3D object, and the laptop and phone are both built in code with no model files.

What I did not measure

I ran Lighthouse on local copies, not on the live domain. I could not check the LinkedIn link by script, because LinkedIn answers bots with HTTP 999.

Next I want to stop phones from downloading the laptop pictures. If that works, I will measure it the same way and post the numbers.

Site: https://devbhamaria.com (source: https://github.com/Burthcer/portfolio)

Top comments (0)