Next.js Discord

Discord Forum

Can’t Remove Legacy JS Hurting Performance

Unanswered
Silver Marten posted this in #help-forum
Open in Discord
Silver MartenOP
Has anybody been able to solve the legacy JS problem in production builds? Lighthouse spits out these issues under Performance every time I run it:

- Avoid serving legacy JavaScript to modern browsers
- Reduce unused JavaScript

I’ve been trying to fix this myself a long time by playing around with browserslist and using every config-altering method suggested by AI. Nothing ever worked.

1 Reply

Dutch
lighthouse performance is not much important topic especially if your pages doesnt have any visible and sensible performance problems like long delays, lagging, stutter, flash etc