Update JavaScript Build Target

How to optimize dev.happythoughts.in

Next.js SiteScore: 92/100Analyzed March 2026Re-analyze this site

Update JavaScript Build Target

Medium Impact+2 points estimated

Why It Matters

Legacy JavaScript polyfills add 20KB of unnecessary code since modern browsers support these features natively.

How to Fix

Update your Next.js config to target modern browsers by setting target: 'es2017' or higher in next.config.js. Remove unnecessary polyfills from your babel configuration. Use browserslist to define supported browser versions and exclude outdated ones.

0Good

What This Score Means

A score of 92 falls in the "Good" 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

2.8s
Needs Improvement

Good: < 2.5s

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

INP

Interaction to Next Paint

124ms
Good

Good: < 200ms

Measures how quickly the page responds to user interactions

CLS

Cumulative Layout Shift

0.00
Good

Good: < 0.1

Measures visual stability - how much content shifts during page load

AI Performance Analysis

This Next.js site performs quite well with a score of 92/100, but there are some optimization opportunities to achieve excellent performance. The biggest issue is render-blocking CSS that's delaying both First Contentful Paint and Largest Contentful Paint by 300ms, causing the LCP to reach 2.8 seconds. The site is also carrying about 78 KiB of unused JavaScript code and using legacy JavaScript polyfills that aren't needed for modern browsers, which could save an additional 20 KiB. Addressing the render-blocking CSS by inlining critical styles or deferring non-critical CSS would provide the most immediate performance boost for your users.

Other Optimization Recommendations

Eliminate Render Blocking CSS

High Impact+4 points estimated

Why It Matters:

The blocking CSS file is delaying both LCP and FCP by 300ms, directly impacting user experience.

How to Fix:

Use Next.js dynamic imports to code-split CSS or inline critical CSS in the <head>. Move non-critical styles to load after first paint using next/dynamic with ssr: false. Consider using CSS-in-JS libraries like styled-components for component-specific styles.

Remove Unused JavaScript Code

High Impact+3 points estimated

Why It Matters:

79KB of unused JavaScript is delaying LCP by 350ms and consuming unnecessary bandwidth.

How to Fix:

Use Next.js bundle analyzer (@next/bundle-analyzer) to identify unused code. Implement dynamic imports for heavy components that aren't immediately needed. Enable tree-shaking by using named imports instead of default imports from libraries.

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