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?
[ Parent
| on HN ]
JS isn’t listening for updates, but simply pulling in a static html file filled with comments.
document.getElementById('commentlist').innerHTML = xhr.responseTextah, 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.