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.

Black-Scholes Calculator homepage report showing Performance 100, Largest Contentful Paint 0.2 seconds and Cumulative Layout Shift 0. PageSpeed reportEnlarge

PageSpeed report

Open full-size image in a new tab ↗

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
View tested website

Related work

Desktop Performance100 / 100
VA Home Loan Calculator homepage report showing desktop Performance 100, Largest Contentful Paint 0.2 seconds and Cumulative Layout Shift 0.001.

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

Want a faster website?

Discuss My Website Speed Explore the service