At 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…
This looks exactly like svelte named slots syntax: https://blog.logrocket.com/comprehensive-guide-svelte-compon...
Streaming HTML out of order without JavaScript
21–30 of 104 posts
Re: Streaming HTML out of order without JavaScript
#22[flagged]
Re: Streaming HTML out of order without JavaScript
#23At 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…
The last example reminds me of the once-proposed html imports feature. It was being pushed by Google back when Polymer was a thing and would've given us actual web components delivered as html documents with full support for html, css, and js just like we use normally. If I remember correctly there were a few issues with the approach that needed to be resolved and nobody stepped up to make it a reality. So instead we…
Re: Streaming HTML out of order without JavaScript
#24Earlier quoted context omitted.
This looks exactly like svelte named slots syntax: https://blog.logrocket.com/comprehensive-guide-svelte-compon...
SPA like React, Vue, Angular, Svelt, solid, should be not needed if HTML implemented these features. Or make JSX a standard again such as E4X.
Re: Streaming HTML out of order without JavaScript
#25Re: Streaming HTML out of order without JavaScript
#26Re: Streaming HTML out of order without JavaScript
#27That's cool and definitely the future of HTML streaming, it simplifies things a lot: js enabled out-of-order streaming leads to SEO problems and frameworks usually need to come up with workarounds - detect bots and turn of streaming for that case. With such technique no workaround is needed, less things to worry about. Excellent!
Re: Streaming HTML out of order without JavaScript
#28[flagged]
There are things that are slow that can't be made to be fast. And there are even more that CAN be made fast but only at extreme cost.
The scenario where this could be good is something where there are background jobs running behind the service that would have been API-ed through the same web server anyway.
But I have an ingenious solution for the best of both worlds! An Iframe.
Re: Streaming HTML out of order without JavaScript
#29Re: Streaming HTML out of order without JavaScript
#30The site loads pretty slowly for me [1], and when they site has fully loaded the list has already been completed, there is no streaming from what I can see. Is Firefox the reason here? 1. https://check-host.net/check-report/16234f41keed