Hacker News new | ask | show | jobs
by FredPret 216 days ago
> "You may have noticed that the traceroute progressively loads in lines above the bottom line. Web pages can only load forward. Since I didn’t want to use any JavaScript, I did the hackiest thing possible: every time I update the traceroute display, I embed a CSS block that hides the previous iteration! Since browsers render CSS as the page is loading, this made it look like the traceroute was being edited over time."

Love this

1 comments

You 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-...

oh yeah i saw this! newer than the website though :)