Combine this with Pico CSS or one of those minimal stylesheets (Water.css) to get better typography and spacing and you‘re set.
I guess htmx is the extreme version of this no-framework philosophy… kinda.
Combine this with Pico CSS or one of those minimal stylesheets (Water.css) to get better typography and spacing and you‘re set.
I guess htmx is the extreme version of this no-framework philosophy… kinda.
edit: I checked and wow, it really does. Good grief, did an AI write this? Use getElementById or querySelector or querySelectorAll or any other remotely modern web API method instead.
Offhand these days I would expect asynchronous loading and rendering both to pose additional concerns. You may not be able even to guarantee whether or not the element you're trying to reference by ID exists at the time of reference. Oh, you can synchronize on DOMContentLoaded or something like that, but that's not going to do anything good for performance. And for that matter, you'd probably have to toggle a TypeScript compiler option I've never heard of, to get this sort of thing to even sort of fly - and there again, the API methods dating from this millennium will be mostly the ones where the type system is able to offer some guarantees.