3 ms·
I wonder how much JavaScript is only being used to produce a small number of common effects. In other words, how necessary is it really for sites to execute ar
by makecheck 11y ago
I wonder how much JavaScript is only being used to produce a small number of common effects. In other words, how necessary is it really for sites to execute arbitrary code?
Maybe we have reached the point where browsers should implement the top 10-20 effects in standard ways (that of course the user can choose to override). That would make it feasible for many web sites to avoid JavaScript entirely and still produce the effects they want, and let us move away from this “execute arbitrary remote code by default” aspect of web pages.
- oneeyedpigeon 11y agoHTML5 has been going in exactly this direction re: form inputs (@autofocus, @required) but, yes, I agree that it would be nice to extend that to, for example, some of the core ui interactions present in frameworks such as bootstrap.
- Raphmedia 11y agoWe can already do a bunch of effects that used to be done with JS using CSS alone (transition, animations, etc.). Most of the JS that we do on websites those days is really helpful for the end user and are the result of the recommendation of UX specialists. (form management, navigational help, async loading of content, preloading content, front-end browser geolocalisation, better responsive for mobile, etc.)