7 ms·
That site is still static. Static doesn't mean there's no dynamic content but rather that no new files are sent from the server, including new JS files. If you
by cercatrova 6y ago
That site is still static. Static doesn't mean there's no dynamic content but rather that no new files are sent from the server, including new JS files. If you ship the entire JS framework on page load, then the page is still static.
- pier25 6y agoYou can have a static SPA with code splitting though.
- cercatrova 6y agoYeah I agree, what do you mean by "though"?
- pier25 6y agoWell, you said: > no new files are sent from the server But you can have 'static' with code splitting and send new files from the server on each route change.
- cercatrova 6y agoWell it's more like, if there's a file bundle, it can be served, but no new files will be generated by the server and sent. The code split files already exist on the server, they're not generated anew so yeah it's still static.