The Next.js app reduces the bundle size by 43% and increase the score to 73 from 36 in Google’s PageSpeed Insights. The First Load JS files contain framework code and the code that is used by multiple pages. The Google Ads script usually blocks the main thread, so we are going to load the script eight seconds after the page

7m read timeFrom syncfusion.com
Post cover image
Table of contents
Analyze First Load JSDynamic importsLazy load images using next/imageLazy load Google AdsSpecific importsOptimize next/linkOptimize fontsLazy load React components (optional)Exclude big libraries from bundleFinal resultsBonusConclusionRelated blogs
4 Comments

Sort: