News for hackers. Stuff that matters.
Re:Static HTML Comments by cirrus3 on Friday January 13, 2023 @09:04PM (#34376606)
Hm. Is it really a "static" website if you have some JS constantly listening for updates?
Re:Static HTML Comments by reustle on Friday January 13, 2023 @09:06PM (#34376626)
JS isn’t listening for updates, but simply pulling in a static html file filled with comments.

    document.getElementById('commentlist').innerHTML = xhr.responseText
Re:Static HTML Comments by cirrus3 on Friday January 13, 2023 @09:25PM (#34376740)
ah, ok.. so it just dynamically loads comments on load?
Re:Static HTML Comments by pontilanda on Friday January 13, 2023 @10:02PM (#34376979)
Static as in "the page is pre-generated, not generated on every HTTP request"

It's the right setup for write rarely, read often scenarios.