HTML Can Do That
HTML has been gobbling up swathes of what used to be JavaScript’s remit. This page lists a bunch of dynamic functionality that we can now achieve with just HTML.
https://chrisburnell.com/html-can-do-that/Open linkView original on lemmy.ml
5 replies
Buy why do in native HTML when we have all these bloaded frameworks available?
/s
Unfortunately, while HTML is more capable than a non Html-seasoned developer assumes, it is still showing that it is not enough. A lot of rough edges, a lot of what feels like incomplete or one-off features, rather than something that feels well planned and complete.
And I doubt this will change. Chrome is heavily invested in keeping a reliance on Javascript, and particularly a browser engine that is very difficult to implement.
Also, I am not convinced that the intenret's ideal format is a markup language. I believe there is great value in scripting. The problem is that browsers gave too much power to the websites and their remote servers over the clients computer, way beyond what is reasonable for scripting of internet documents. We need browsers whose scripting capabilities are only relevant for internet documents, not entire arbitrary applications.
Thanks for sharing I didn't know about these features. I recently uploaded some photos to my web server. At the moment they all load at once when you open the page. It's only 14mb but not ideal if you're on a slow connection. I might try lazy loading for thumbnails and modals for viewing the higher res versions.
Interestingly the
datalistelement seems to work on desktop but not on mobile, despite both running firefox 154.0