Adding Dynamic And Async Functionality To JAMstack Sites
Publikováno: 2.1.2020
Jason Lengstorf:
Here’s an incomplete list of things that I’ve repeatedly heard people claim the JAMstack can’t handle that it definitely can:
- Load data asynchronously
- Handle processing files, such as manipulating images
- Read from and write to a database
- Handle user authentication and protect content behind a login
There is still a misconception that JAMstack = use a static site generator and that's it, despite the fact that almost every article I've ever read about JAMstack gets into how … Read article
The post Adding Dynamic And Async Functionality To JAMstack Sites appeared first on CSS-Tricks.
Jason Lengstorf:
Here’s an incomplete list of things that I’ve repeatedly heard people claim the JAMstack can’t handle that it definitely can:
- Load data asynchronously
- Handle processing files, such as manipulating images
- Read from and write to a database
- Handle user authentication and protect content behind a login
There is still a misconception that JAMstack = use a static site generator and that's it, despite the fact that almost every article I've ever read about JAMstack gets into how it's about pre-rendering what you can, and using client-side JavaScript and APIs to do the rest.
Phil laid that out very nicely for us recently.
This misconception seems very real to me. I hear it regularly. As I was writing this, I saw this question posted on Reddit.
I'll spare you from a speech about the uselessness of trying to distinguish between "apps" and "sites" but I think this helps make the point that there is plenty of confusion out there.
If you're in a festive mood...
Tim Chase got creative and wrote this tongue-in-cheek poem. It's obviously a joke but its assumption comes from the exact other angle, that JAMstack requires client-side JavaScript to do anything:
I do not like that stack that's JAM
I do not like it, Sam-I-am.
I will not run it for a spell,
I will not use your GraphQL.
I will not run it over QUIC
No, Sam-I-am, it makes me sick.
Listen how it makes me cough
It does not work with JS off.
And Phil responded:
These thoughts make sense, I must agree
Except you really don’t need all three
It’s up to you. For you to choose.
JavaScript’s just an option you might use.
And if you do, success might be
From enhancing things progressively.A JAMstack site might seem reliant
On doing everything in the client
In fact though, it depends on what
Requirements and use-cases you have got
The biggest key though, to remember
Is to serve things statically, and pre-render.
Direct Link to Article — Permalink
The post Adding Dynamic And Async Functionality To JAMstack Sites appeared first on CSS-Tricks.