Enormous HTML files
Unanswered
Red wasp posted this in #help-forum
Red waspOP
Hey, I'm using next to build react project as a statically server HTML websites. The website include many pages (in multiple languages), but i notice that these pages are really huge.
I for exemple notice that every single html file (of pages) includes a NEXT_DATA script being about 7000 lines, and I dont think this is useful for static websites.
Any tips about how to fix that?
I for exemple notice that every single html file (of pages) includes a NEXT_DATA script being about 7000 lines, and I dont think this is useful for static websites.
Any tips about how to fix that?
8 Replies
this is the data which is passed to the page and rendered
Red waspOP
but i mean isnt it already rendered as it's literally an html file?
there is no way to reduce the size of the html files?
I think those files are already minified
Red waspOP
yeah but even minified, my index.html is 3mo big
was wondering what is going on
(it's a serverless project by the way, just html file served by cf)
you need to somehow reduce the data passed