Streaming HTML out of order without JavaScript
lamplightdev.com
Streaming HTML out of order without JavaScript
1–10 of 104 posts
Re: Streaming HTML out of order without JavaScript
#2What's the browser support like?
Re: Streaming HTML out of order without JavaScript
#3Re: Streaming HTML out of order without JavaScript
#4
This is and
sunny
funny
renders as: This is funny and sunny
So it looks like HTML got a bit of a native template system now.What I have been wanting for decades is a native template system in HTML which supports urls. Similar the the script tag, but which loads html:
I always wondered why this was never implemented. It seems such a basic functionality which would allow to comfortably build websites in a modular way without scripts or serverside processing.Re: Streaming HTML out of order without JavaScript
#5Re: Streaming HTML out of order without JavaScript
#6This looks very interesting, I was not aware that this was possible natively without JS. What's the browser support like?
> All browsers support streaming HTML
And the caniuse is promising: https://caniuse.com/?search=slot
Re: Streaming HTML out of order without JavaScript
#7At the core, this seems to be about shadowrootmode=open, a new html feature which already landed in Chromium and Safari: This is and sunny funny renders as: This is funny and sunny So it looks like HTML got a bit of a native template system now. What I have been wanting for decades is a native template system in HTML which supports urls. Similar the the script tag, but which loads html: I always wondered why this was…
Re: Streaming HTML out of order without JavaScript
#8At the core, this seems to be about shadowrootmode=open, a new html feature which already landed in Chromium and Safari: This is and sunny funny renders as: This is funny and sunny So it looks like HTML got a bit of a native template system now. What I have been wanting for decades is a native template system in HTML which supports urls. Similar the the script tag, but which loads html: I always wondered why this was…
Re: Streaming HTML out of order without JavaScript
#9This looks very interesting, I was not aware that this was possible natively without JS. What's the browser support like?
Seems like browser support is pretty universal, even says so in the article > All browsers support streaming HTML And the caniuse is promising: https://caniuse.com/?search=slot
But you can already do a lot with regular streaming and using CSS Grid, inline tags, etc to move stuff around the page.
Re: Streaming HTML out of order without JavaScript
#10At the core, this seems to be about shadowrootmode=open, a new html feature which already landed in Chromium and Safari: This is and sunny funny renders as: This is funny and sunny So it looks like HTML got a bit of a native template system now. What I have been wanting for decades is a native template system in HTML which supports urls. Similar the the script tag, but which loads html: I always wondered why this was…