I understand the urge to throw out the old and replace it with a new system, but that would be a huge blow to accessiblilty and adoption.
I understand the urge to throw out the old and replace it with a new system, but that would be a huge blow to accessiblilty and adoption.
Something to put in a meta tag or something early in the page that lets the browser know this webpage will only use a known-to-be-fast-and-predictable subset of html and css and only use js from a standardized library that provides things like autocomplete and other actually high value interactions.
A lot of basic high value interactions are more directly encoded in HTML today than a lot of developers expect to need JS for. Some other tags to pay attention to: summary/details, progress, meter, input type="color|date|time|datetime|range".
It's an interesting relearning project, sometimes, how much the high level interactivity bits of HTML have changed since, for instance, the jQuery era.
This does not seem to load data dynamically, it seems to be a way to show data from a predefined list?
Sure, you still need JS to fetch a dynamic changing list, but you can also just update datalist options elements with JS rather than implement a full separate UX for autocomplete today. You are limited in the ability to CSS style datalist options so a lot of developers are still going to feel pressure in 2023 from "pixel perfect" UX designers to continue to reimplement that wheel, but the version of the JS that just updates a datalist after a fetch is likely much simpler than building a full "autocomplete control".
[1]: https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mod...
But it is an idea that I keep getting reminded about.
It could work adoption wise, since if it can be done technically it can be adapted independently of everyone else on backend and frontend:
- backwards compatible, if a browser doesn't take advantage of it it renders completely ordinary and in supporting browsers if a website doesn't use this trick it just renders as any other website
- If just one browser and one website does implement this then there will be a full setup. If the idea worked and for example Firefox supported this and Wikipedia or someone else took advantage of it suddenly everyone who used Wikipedia would se faster load and less battery usage.
amp isn't meant to solve our problem but Googles problems.