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](https://cdn.answeroverflow.com/1260843237417943100/image.png)
1 Reply
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.