I'm struggling with a large HTML file issue in my Next.js project.

The HTML byte size is huge, impacting performance. šŸ¢ šŸ” Any tips on optimizing or reducing the HTML size?
No description
1 Reply
usmanabdurrehman
usmanabdurrehmanā€¢5mo ago
1. Use something like Next.js so that the whole bundle doesnt come in one go and each page has a seperate bundle 2. Use Lazy loading/Suspense for components which are not that often used 3. Use tree shaking for your third party libraries so that only the components/functions you are using from those libraries become a part of your bundle etc.
Want results from more Discord servers?
Add your server