Top all-time · #10545
Chris Haynes
Personal blog · lamplightdev.com/blogwebprogramming
Chris Haynes writes lamplightdev blog, a personal blog at lamplightdev.com about web and programming. Since 2020, 7 different Hacker News readers have linked it 9 times, most often “Streaming HTML out of order without JavaScript”. The last post was in 2024, but the archive is still widely read.
Too few sampled comments (5) to say how often HN recommends it.?
Why HN links it
HN commenters cite this blog's posts on HTML streaming and server-side rendering without client-side JavaScript, using Declarative Shadow DOM or Light DOM for out-of-order streaming.
Summarised by Claude from a sample of 5 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Chris Haynes - web developer consultant
Most-linked posts?
- Streaming HTML out of order without JavaScript6 people · 7 mentions · first linked 2024-03-01
What Hacker News says?
No need for JSON and JS, you can use pure HTML streaming: https://lamplightdev.com/blog/2024/01/10/streaming-html-out-... and pure CSS interactions like tabs, accordions, dropdown menus.
Comment linking /blog/2024/01/10/streaming-html-out-of-order-without-javascript/
on “How to Start Google”Submitted Streaming HTML out of order without JavaScript as a story · 226 points
HN discussionNot only x-mixed-replace. You can do out-of-order HTTP streaming by appending chunks of HTML without any JS at all, thanks to Declarative Shadow DOM: https://lamplightdev.com/blog/2024/01/10/streaming-html-out-...
Comment linking /blog/2024/01/10/streaming-html-out-of-order-without-javascript/
on “WebSockets vs. Server-Sent-Events vs. Long-Polling vs. WebRTC vs. WebTransport”Submitted Streaming HTML out of order without JavaScript as a story · 23 points
HN discussionYou can also do out-of-order HTML streaming without JavaScript using declarative shadow DOM. For example: https://lamplightdev.com/blog/2024/01/10/streaming-html-out-...
Comment linking /blog/2024/01/10/streaming-html-out-of-order-without-javascript/
on “How did I get here?”Submitted Web Components aren't a framework replacement – they're better than that as a story · 4 points
HN discussionI'm not quite sure what you're doing, but I wonder if a new-ish browser api - Declarative Shadow DOM - could be useful here. It allows for sending a sort of html shell to the browser that contains pre-defined placeholders, and then async sending the html fragments for those placeholders. No JS required. It recently got support from all the major browsers. - https://developer.chrome.com/docs/css-ui/declarative-shadow…
Comment linking /blog/2024/01/10/streaming-html-out-of-order-without-javascript/
on “Ask HN: Server-side HTML Templates based on DOM?”Submitted Streaming HTML out of order without JavaScript as a story · 3 points
HN discussionYou can't without client side JavaScript if you're using the Shadow DOM. If you're not using Shadow DOM, just Light DOM, then you can do so: https://lamplightdev.com/blog/2019/07/20/how-to-server-side-...
Comment linking /blog/2019/07/20/how-to-server-side-render-web-components/
on “Introduction to WebComponents with ShadowDOM”