a slide out menu needs JavaScript
A slide out menu can be done in pure CSS and HTML. Imho, it would look bad regardless.
When if you said just send the parts of the page that changed, that dynamic content loading would still be JavaScript
OP is trying to access a restaurant website that has no interactivity. It has a bunch of static information, a few download links for menu PDFs, a link to a different domain to place an order online, and an iframe for making a table reservation.
The web dev using javascript on that page is lazy, yet also creating way more work for themself.
expr@programming.dev 3 weeks ago
htmx.org solves the problem of full page loads. Yes, it’s a JavaScript library, but it’s a tiny JS library (14k over the wire) that is easily cached. And in most cases, it’s the only JavaScript you need. The vast majority of content can be rendered server side.
Cerothen@lemmy.ca 3 weeks ago
While fair, now you have to have JavaScript enabled in the page which I think was the point. It was never able having only a little bit. It was that you had to have it enabled
expr@programming.dev 2 weeks ago
Yes, it is unfortunate that this functionality is not built-in to HTML/browsers to begin with. The library is effectively a patch for the deficiencies of the original spec. Hopefully it can one day be integrated into HTML proper.
Until then, HTMX can still be used by browsers that block third party scripts, which is where a lot of the nasty stuff comes from anyway. And JS can be whitelisted on certain sites that are known to use it responsibly.
XM34@feddit.org 3 weeks ago
So, your site still doesn’t work without JS but you get to not use all the convenience React brings to the table? Boy, what a deal! Maybe you should go talk to Trump about those tariffs. You seem to be at least as capable as Flintenuschi!