2 ms·
This looks very interesting, I was not aware that this was possible natively without JS. What's the browser support like?
by djxfade 3y ago
This looks very interesting, I was not aware that this was possible natively without JS.
What's the browser support like?
- MindSwipe 3y agoSeems 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 https://caniuse.com/?search=slot
- csande17 3y ago<slot> has been around for a while in Web Components; the relevant feature here is probably the (much newer) shadowrootmode attribute: https://caniuse.com/?search=shadowrootmode https://caniuse.com/?search=shadowrootmode But you can already do a lot with regular streaming and using CSS Grid, inline <script> tags, etc to move stuff around the page.
- mikedelfino 3y agoChrome, Edge and Safari since March 2023; Firefox since February 2024. https://caniuse.com/mdn-html_elements_template_shadowrootmode https://caniuse.com/mdn-html_elements_template_shadowrootmod...