I have a website that I'm trying to optimize lighthouse page speed ranking. I just switched from SSR with nginx caching to next export
using exportPathMap
and getInitialProps
(also with nginx caching).
Specific page of interest gets heavy traffic
After switching to static, the first content image appears loads in 2-2.5s for "slow 3G". However JS execution time takes like 3-6 seconds.
Questions:
Why does script evaluation take 3-6s when I am using a static export, I was under the impression it would be quite fast?
Are there ways to optimize nextjs JS execution time? Or maybe a webpack setting?