Remove Unused JavaScript Code

How to optimize agileontheweb.com

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

Remove Unused JavaScript Code

High Impact+8 points estimated

Why It Matters

76% of JavaScript in main chunk (27KB) is unused, creating unnecessary network overhead.

How to Fix

Enable Next.js bundle analyzer to identify unused code in chunks/1143-0ab9339f79187463.js. Implement dynamic imports for components not needed on initial load. Use Next.js tree shaking by ensuring named imports instead of default imports from libraries.

0Needs Improvement

What This Score Means

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

4.9s
Poor

Good: < 2.5s

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

INP

Interaction to Next Paint

177ms
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 website has decent performance with a score of 80/100, but suffers from a critically slow Largest Contentful Paint of 4.9 seconds, which far exceeds Google's recommended 2.5 seconds. The biggest issue is render-blocking CSS files that are delaying the initial page render by 440ms, preventing users from seeing content quickly. The site is also loading 27KB of unused JavaScript and using outdated polyfills that aren't needed for modern browsers, adding unnecessary bloat. Addressing the render-blocking stylesheets by inlining critical CSS and removing unused JavaScript could significantly improve load times and boost the performance score into the 90s.

Other Optimization Recommendations

Eliminate Render Blocking CSS

High Impact+12 points estimated

Why It Matters:

Critical CSS files are blocking initial render and delaying LCP by 450ms.

How to Fix:

In Next.js, inline critical CSS using styled-jsx or CSS-in-JS for above-the-fold content. Move non-critical CSS (36d3ad196d96d2e6.css) to load after first paint using dynamic imports. Use Next.js font optimization to prevent FOIT with custom fonts.

Fix Forced Reflow Issues

Medium Impact+5 points estimated

Why It Matters:

JavaScript is causing 95ms of forced reflows, blocking the main thread and degrading INP.

How to Fix:

Batch DOM reads and writes to avoid layout thrashing in React components. Use useLayoutEffect instead of useEffect for DOM measurements. Cache geometric properties like offsetWidth instead of repeatedly querying them in your Next.js components.

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