Portfolio / Website Speed Optimization
Speeding up my Laravel portfolio
On my own portfolio homepage, mobile Largest Contentful Paint went from 1.6 s to 0.8 s in two PageSpeed Insights tests. Here is what I changed and how the desktop and mobile results compare.
- My role
- Site owner and performance developer
- Project date
- 26 November 2026
PageSpeed results
- Mobile Performance
- 99 → 100
Largest Contentful Paint went from 1.6 s to 0.8 s. Speed Index went from 2.6 s to 1.3 s.
- Desktop Performance
- 100 / 100
Largest Contentful Paint was 0.2 s and Speed Index was 0.5 s in the retest.
- Best Practices
- 92 → 100
Both device profiles reached 100. Accessibility and SEO also scored 100 on both.
What needed fixing
The homepage already scored 99 for mobile Performance, but small screens downloaded a larger portrait than the layout needed. Best Practices scored 92, and the browser reported a blocked analytics script.
What I changed
I matched the portrait’s responsive image sizes to its displayed width. In a 412 px viewport at 1.75× pixel density, the browser selected the 540 px image for a 216 px slot. I also disabled the optional Cloudflare analytics injection that conflicted with the site’s script policy.
Test reports
I tested the public homepage on both PageSpeed device profiles. You can compare the original mobile report with the mobile retest and inspect the desktop retest. These are Lighthouse lab measurements from 26 November 2026. Timing varies with the device, network and test run.
Technologies
- Laravel
- Responsive images
- Cloudflare
- Lighthouse
Related work
Website Speed Optimization
Ehaan Lifestyle — Storefront Speed Optimization
The Ehaan Lifestyle storefront homepage scored 95/100 for Performance. In the recorded test, the first content appeared in 0.4 seconds and the largest visible element rendered in 1.2 seconds.
Role Website speed optimization
Website Speed Optimization
STIVO Lifestyle — Storefront Speed Optimization
The STIVO Lifestyle storefront homepage scored 100/100 for Performance. In the recorded test, the first content appeared in 0.3 seconds and the largest visible element rendered in 0.5 seconds.
Role Website speed optimization
Website Speed Optimization
Hijab Collection — Storefront Speed Optimization
The Hijab Collection storefront homepage scored 99/100 for Performance. In the recorded test, the first content appeared in 0.4 seconds and the largest visible element rendered in 1.0 seconds.
Role Website speed optimization