Gatsby – A Static Site Generator for React
1–10 of 73 posts
Re: Gatsby – A Static Site Generator for React
#2Since I recently wanted to build a new static site, I tried to hack an existing SSG into generating JSON files to support something like React. Wasn't exactly painless.
So I'm happy about Gatsby.
Re: Gatsby – A Static Site Generator for React
#3Just discovered this project. Since I recently wanted to build a new static site, I tried to hack an existing SSG into generating JSON files to support something like React. Wasn't exactly painless. So I'm happy about Gatsby.
Re: Gatsby – A Static Site Generator for React
#4Just discovered this project. Since I recently wanted to build a new static site, I tried to hack an existing SSG into generating JSON files to support something like React. Wasn't exactly painless. So I'm happy about Gatsby.
Why would you need to generate JSON files?
Re: Gatsby – A Static Site Generator for React
#5For fancy marketing sites I get it immediately, I guess.
Re: Gatsby – A Static Site Generator for React
#6Re: Gatsby – A Static Site Generator for React
#7Can someone make a case for React on static blog sites? How is this a net win versus plain 'ol HTML? For fancy marketing sites I get it immediately, I guess.
Only do a small (api) data request per page, faster page transitions, a more interactive experience.
Just think of the site generator as a static api backend for the the JS frontend.
Re: Gatsby – A Static Site Generator for React
#8Can someone make a case for React on static blog sites? How is this a net win versus plain 'ol HTML? For fancy marketing sites I get it immediately, I guess.
The same reason why anybody is using React instead of full site reloads. Only do a small (api) data request per page, faster page transitions, a more interactive experience. Just think of the site generator as a static api backend for the the JS frontend.
I'm a little confused about no page transitions. I don't know why that is a problem that needs solving. Also hot reloading.
Re: Gatsby – A Static Site Generator for React
#9Without JS: 4 requests, 20 KB transferred, DOMContentLoaded @ 360ms
With JS: 27 requests, 518 KB transferred, DOMContentLoaded @ 22.07s (includes Disqus)
For caching purposes, it might make sense to split the bundle.js into a app.js and content.js and only update the content.js on re-deployments. Not sure if this is just on the author's blog or on every site built with Gatsby.
Re: Gatsby – A Static Site Generator for React
#10Earlier quoted context omitted.
The same reason why anybody is using React instead of full site reloads. Only do a small (api) data request per page, faster page transitions, a more interactive experience. Just think of the site generator as a static api backend for the the JS frontend.
Why not just have HTML generated at some earlier time? It's faster, can be cached, and does the same thing. I'm a little confused about no page transitions. I don't know why that is a problem that needs solving. Also hot reloading.
Is a JS framework the best way to achieve that? Maybe, maybe not. There are many factors to consider. I just don't think it's a matter of "this isn't a problem that needs solving."