3 ms·
Is this because it's a quickly made demo vs a refined production-ready site, or is it a direct result of the way the sites are made? Can you use GraphQL, React,
by rthomas6 9y ago
Is this because it's a quickly made demo vs a refined production-ready site, or is it a direct result of the way the sites are made? Can you use GraphQL, React, Express, etc. and make a very fast website?
- jbreckmckye 9y agoYou can, but it's a lot harder than building a very fast website that just uses Express to render Pug templates and that caches HTML in a CDN.
- rthomas6 9y agoIf the site is static enough to do that, why wouldn't I just use a static site generator? Not being snarky, I'm really trying to learn.
- jbreckmckye 9y agoYou might need to retrieve your document content from a database. The CDN can phone home every so often to check its caches are still valid. This is basically how we served The Guardian.
- dullgiulio 9y agoHandling timeouts and refetching failed resources is one job for the browser, which are quite good at it nowadays. There is no need to badly replicate (with extra bugs) this tedious logic in Javascript for each and every website.