Next.js Discord

Discord Forum

Website too laggy

Answered
Pigeon tremex posted this in #help-forum
Open in Discord
Pigeon tremexOP
My web application gets lagged at points when there is image loading. What could have caused this issue ? The image is just 3.4mb. Like suppose the image is about to appear to the viewport then at that moment the scroll feels very sticky like it's forced to not scroll.
Answered by joulev
3.4 MB is very large. Optimise it, either by next/image or by hand using any X->webp converter you can find. It should be a couple of hundred kB at most
View full answer

2 Replies