Back to mobile layout and performance fixes

Personal portfolio

Making this portfolio faster on mobile

I reduced the data transferred on the home page and made its layout more stable. This compares the two builds under the same conditions.

What changed during loading

Results in an emulated mobile Chrome session
MetricBeforeAfter
Data transferred in the first 8 seconds888.79 kB435.79 kB
Largest visible element rendered (LCP)840 ms744 ms
Layout shift (CLS)0.033< 0.001

What I worked on

I reduced the upfront transfer of JavaScript and fonts. I also constrained the width of the introductory paragraph on mobile so the layout shifted less as fonts loaded.

How I checked the change

Medians of three cold-cache visits per build. Local Chrome 158 at 390 × 844 px, 4× CPU slowdown and a simulated network of 1.6 / 0.75 Mbps with 150 ms latency.

These are lab measurements of my own site. Dragging the 3D gallery still produced an occasional slow frame in the final check.

Seeing a similar problem on your site?

Send me the page address and tell me when the issue shows up. We can agree on the first fix and how to check the result.