Portfolio / Website Speed Optimization
Black-Scholes Calculator — Homepage Speed Optimization
I optimized the Black-Scholes Calculator homepage so visitors could see the pricing form and its example quickly. The supplied PageSpeed report shows 100 for Performance and a 0.2 s Largest Contentful Paint.
- My role
- Website speed optimization
- Industry
- Financial education tools
PageSpeed results
- Desktop Performance
- 100 / 100
The supplied PageSpeed screenshot also records 100 for Accessibility, Best Practices and SEO, and 2/2 for Agentic Browsing.
- Desktop Largest Contentful Paint
- 0.2 s
The same run recorded First Contentful Paint of 0.2 s, Speed Index of 0.4 s, Total Blocking Time of 0 ms and Cumulative Layout Shift of 0.
- Mobile Performance
- 100 / 100
The separate mobile Lighthouse audit recorded a Largest Contentful Paint of 0.96 s and zero layout shift.
What needed fixing
The homepage needs to show the pricing form and worked example promptly, including on mobile. It also needs to keep the form responsive while keeping stylesheet and script downloads small.
What I changed
I built the public pages as static HTML with Astro and ran the calculations in the browser with TypeScript. I enabled gzip compression for text assets and set long-lived cache headers for versioned CSS and JavaScript so returning visitors could reuse them.
Test reports
The screenshot shows the supplied desktop PageSpeed run. A separate deployment audit on the live homepage scored 100 for Performance, Accessibility, Best Practices and SEO on desktop and mobile. That audit recorded a 0.30 s Largest Contentful Paint on desktop and 0.96 s on mobile. These figures are lab measurements. A comparable pre-release homepage report is unavailable.
Technologies
- Astro
- TypeScript
- Lighthouse
Related work
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.
Role Website speed optimization