-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dedupe content in JavaScript #305
Comments
Some interesting comments / links / resources on the subject https://twitter.com/slightlylate/status/1240419628557283328
https://twitter.com/slightlylate/status/1240376840788643840
https://www.gatsbyjs.org/packages/gatsby-plugin-no-javascript/
|
An interesting Twitter thread on the topic, with some comments in regards to lit-html edit: another one |
If we "dedupe" content from JS, then in SPA mode wouldn't all the content be missing when routing? Will each page need to grab it's contents some other way, like we do with cache.json? |
Some Gatsby docs on how they do it |
We are HTML first for all (markdown) content now as part of v0.10.0! 🎉 |
Type of Change
Summary
One concern with a pre-rendering approach is that even though the HTML is pre-generated, it often still ends up with an architecture that ships the same code via JavaScript as well.
If the project is generating static content it really shouldn't also be delivered via JavaScript too, ideally.
Details
For example, in our project, since all pages are generated by JavaScript, you'll see that even static the page content is in the index.js bundle.
Wondering if there's anything about our implementation that should change re: pre-rendering vs SSG?
The text was updated successfully, but these errors were encountered: