Portfolio / Website Speed Optimization
VA Home Loan Calculator — Homepage Speed Optimization
I kept the VA Home Loan Calculator homepage lightweight by delivering static pages and loading Analytics only after consent. PageSpeed Insights recorded 100 for desktop Performance and 98 for mobile Performance.
- My role
- Website speed optimization
- Industry
- Mortgage planning tools
PageSpeed results
- Desktop Performance
- 100 / 100
First Contentful Paint and Largest Contentful Paint both recorded 0.2 s. Speed Index was 0.5 s, Total Blocking Time was 0 ms and Cumulative Layout Shift was 0.001.
- Mobile Performance
- 98 / 100
First Contentful Paint and Largest Contentful Paint both recorded 1.0 s. Total Blocking Time and layout shift were both zero. Speed Index was 3.9 s.
- Agentic Browsing
- 2 / 2
Both profiles also recorded 100 for Accessibility, Best Practices and SEO.
What needed fixing
The homepage introduces 13 mortgage tools and an example payment breakdown. Visitors should be able to see that content quickly, especially over a slower mobile connection. Analytics needed to wait until visitors made their privacy choice.
What I changed
I used Astro to build the public pages as static HTML and TypeScript to run the calculators in the browser. I used WebP for the shared wordmark and responsive WebP sizes for the guide images. Google Analytics loads asynchronously after consent. In a later update, I restricted what it sends about the page URL and referrer.
Test reports
The screenshot matches the desktop report. The mobile report uses an emulated mobile profile. Both are lab results for the live homepage.
Earlier scores recalled by the site owner
The original reports and device profiles are unavailable. The values below are approximate.
- First set. Performance 80, Accessibility 85, Best Practices 70, SEO 60 and one Agentic Browsing check passed.
- Second set. Performance 80, Accessibility 75, Best Practices 60 and SEO 70.
Technologies
- Astro
- TypeScript
- Lighthouse
Related work
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.
Role Site owner and performance developer
Website Speed Optimization
Ehaan Lifestyle — Storefront Speed Optimization
I reduced the image downloads on the Ehaan Lifestyle homepage, then worked on the mobile banner and the scripts that run before shoppers can use the page. Desktop Performance rose from 77 to 95. In the second round, mobile Performance rose from 78 to 83.
Role Website speed optimization
Website Speed Optimization
STIVO Lifestyle — Storefront Speed Optimization
I made STIVO Lifestyle’s first banner smaller and loaded it earlier. Paired Lighthouse tests on the live homepage recorded mobile Performance rising from 86 to 95 and desktop Performance from 97 to 100.
Role Website speed optimization