Closed zaydek closed 3 years ago
This is probably a good idea for purely marketing-based pages that wouldn’t benefit from JS? Realistically, I’m not sure we’re going to be able to get away with zero JS. Alternatively, if code-splitting is solved for, this is probably a non-issue. Closing in favor of a code-splitting-first approach.
In theory all this means is that we don’t ship (we even omit app.js) from build. So the prerendering page services would probably need to know this in order to omit those pages.
Do we want to enable html-only for only some pages or is project-wide? If it’s only for some pages that gets a little awkward because we need to coordinate which pages link app.js. Then app.js itself just doesn’t render / hydrate those pages.
Maybe we just delimit those pages as .html. so then we have
csr
andhtml
orno-app
pages.