Optimize Unused JavaScript Removal

How to optimize tsy.happythoughts.in

Next.js SiteScore: 75/100Analyzed February 2026

Optimize Unused JavaScript Removal

High Impact+18 points estimated

Why It Matters

189 KiB of unused JavaScript delays LCP by 1.1 seconds and blocks the main thread.

How to Fix

Enable Next.js tree shaking by using ES6 imports instead of entire libraries. Configure webpack bundle analyzer to identify unused code in your chunks. Split the large fd7e7cb90071b1c8.js chunk using dynamic imports for non-critical features. Move Google Analytics to use Next.js Script component with strategy='afterInteractive'.

0Needs Improvement

What This Score Means

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

7.2s
Poor

Good: < 2.5s

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

INP

Interaction to Next Paint

131ms
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 has poor performance with a score of 75/100, but faces critical loading issues. The biggest problem is a redirect chain that's adding nearly 800ms of delay, combined with extremely slow Largest Contentful Paint at 7.2 seconds - well above Google's recommended 2.5 seconds. The site is also bloated with 189 KiB of unused JavaScript and has inefficient caching, particularly for the logo image which has almost no cache lifetime. Fixing the redirect issue, optimizing the logo caching, and removing unused code could dramatically improve loading times and boost the performance score by 15-20 points.

Other Optimization Recommendations

Eliminate Multiple Page Redirects

High Impact+12 points estimated

Why It Matters:

Redirects delay both LCP and FCP by 750ms, significantly impacting user experience.

How to Fix:

Update your Next.js deployment configuration to serve the auth page directly without redirecting through the root. If using Vercel, check your vercel.json rewrites. If using custom server, update your routing logic to avoid the redirect chain from / to /auth.

Implement Proper Browser Caching

Medium Impact+8 points estimated

Why It Matters:

Poor cache configuration wastes 245 KiB on repeat visits, especially the 243KB logo file.

How to Fix:

Configure your Next.js static asset caching by setting proper Cache-Control headers for the Logo.svg (1 year max-age). Use next/image component instead of regular img tag for optimized caching. Set up CDN caching rules for your static assets and enable immutable caching for hashed assets.

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

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