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
| Metric | Before | After |
|---|---|---|
| Data transferred in the first 8 seconds | 888.79 kB | 435.79 kB |
| Largest visible element rendered (LCP) | 840 ms | 744 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.