Optimize Modern JavaScript Build

How to optimize dev.happythoughts.in

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

Optimize Modern JavaScript Build

High Impact+10 points estimated

Why It Matters

18 KiB of legacy polyfills are unnecessary for modern browsers and slow LCP by 150ms.

How to Fix

Update Next.js config to target modern browsers by setting 'browserslist' to exclude IE and old Safari versions. Remove polyfills for Array.prototype.at, Object.hasOwn, and other modern features. Use differential serving with next/dynamic for legacy browser support only when needed.

0Needs Improvement

What This Score Means

A score of 76 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

6.2s
Poor

Good: < 2.5s

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

INP

Interaction to Next Paint

67ms
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/React site has moderate performance issues with a score of 76/100. The biggest problem is an extremely slow Largest Contentful Paint of 6.2 seconds, which is primarily caused by oversized images that are much larger than their displayed dimensions (896x1280 images shown at 662x945). Additionally, the site is shipping 73 KiB of unused JavaScript and 18 KiB of unnecessary legacy JavaScript polyfills that modern browsers don't need. Implementing responsive images, removing unused code, and optimizing the JavaScript build process could improve loading times by several seconds and significantly boost the user experience.

Other Optimization Recommendations

Remove Unused JavaScript Code

High Impact+12 points estimated

Why It Matters:

73 KiB of unused JavaScript is blocking LCP by 400ms and delaying page interactivity.

How to Fix:

Use Next.js dynamic imports to code-split large chunks like 9da6db1e-84d596694ed54865.js (85% unused). Implement tree shaking by adding 'sideEffects: false' to package.json. Use Next.js built-in bundle analyzer to identify and remove unused dependencies.

Implement Responsive Image Optimization

Medium Impact+8 points estimated

Why It Matters:

Images are oversized by 126 KiB, serving 896x1280 files when only 662x945 is displayed.

How to Fix:

Use Next.js Image component with responsive breakpoints and srcSet generation. Configure next.config.js with image domains and add 'sizes' prop matching your layout breakpoints. Enable automatic WebP conversion through Next.js built-in image optimization.

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