Remove Unused JavaScript Code

How to optimize 6a1baaeae2f6f30008194796..admirable.florentine.bf5b33.netlify.app

Next.js SiteScore: 88/100Analyzed May 2026Re-analyze this site

Remove Unused JavaScript Code

High Impact+8 points estimated

Why It Matters

279 KiB of unused JavaScript delays LCP by 150ms and blocks the main thread unnecessarily.

How to Fix

Use Next.js dynamic imports to code-split large bundles like GTM and analytics scripts. Defer Google Analytics using next/script with strategy='afterInteractive'. Remove or lazy-load the 0inhsdzfd_89d.js chunk which has 83% unused code.

0Needs Improvement

What This Score Means

A score of 88 falls in the "Needs Improvement" range (50-89). While it is better than poor (0-49), you should aim for 90+ to provide an optimal user experience and maximize SEO benefits.

This site is slower than approximately 35% of similar sites. The main issues affecting performance are image optimization, JavaScript execution time, and layout stability.

Addressing these issues could improve your conversion rate by 15-20% and boost your search engine rankings.

Core Web Vitals Analysis

LCP

Largest Contentful Paint

3.2s
Needs Improvement

Good: < 2.5s

Measures how long it takes for the main content to appear on screen

INP

Interaction to Next Paint

149ms
Good

Good: < 200ms

Measures how quickly the page responds to user interactions

CLS

Cumulative Layout Shift

0.08
Good

Good: < 0.1

Measures visual stability - how much content shifts during page load

AI Performance Analysis

This Next.js site has good performance with a score of 88/100, but there are several optimization opportunities that could make it excellent. The biggest issue is excessive unused JavaScript from Google Analytics and tag management scripts, which wastes 279 KB and delays page interactivity to 9.3 seconds - much slower than the recommended 3 seconds. Additionally, the site is using outdated JavaScript polyfills that aren't needed for modern browsers, wasting another 42 KB and slowing down content loading. Removing unused JavaScript code, updating the build process to target modern browsers, and optimizing the large hero background images could easily push this site into the 95+ performance range.

Other Optimization Recommendations

Eliminate Render-Blocking CSS

High Impact+6 points estimated

Why It Matters:

CSS file blocks initial render by 210ms, directly delaying both FCP and LCP by 200ms.

How to Fix:

Inline critical CSS for above-the-fold content in Next.js using styled-jsx or CSS-in-JS. Load non-critical CSS asynchronously with next/dynamic. Split your 12.8KB CSS bundle into critical and non-critical portions.

Update JavaScript Build Target

Medium Impact+4 points estimated

Why It Matters:

42 KiB of legacy JavaScript polyfills are unnecessary for modern browsers and delay LCP by 250ms.

How to Fix:

Update Next.js config to target ES2020+ by setting target: 'es2020' in next.config.js. Remove polyfills for Array.prototype.at, Object.hasOwn, and other modern features. Use @babel/preset-env with browserslist targeting last 2 years.

Keep Your Site Fast After Optimization

Once your site is optimized, maintain that speed. Use DeployHQ for zero-downtime, automated deployments—so performance fixes and updates go live safely every time, without breaking your site.

Explore DeployHQ →Trusted by engineering teams shipping high-performance sites

Want to Analyze YOUR Website?

Get AI-powered performance insights with actionable fixes in 30 seconds

More Next.js Speed Tests

Next.js Performance Resources

Frequently Asked Questions