by simonw · 10y ago · 0 comments
HTML with a little bit of CSS and a little bit of JavaScript.
I think it's crazy that web development trends continue to move in the direction of MB+ JavaScript single page apps, while actual device trends are moving towards inexpensive Android mobile phones on cellular connections. The web is getting fatter while the devices are getting less powerful!
How much code do you really need to serve to power an interface that fits on a mobile phone screen?
That seems like a bit a of generalization. Even the "inexpensive" phones are getting more powerful. Yeah, a lot of people are buying cheaper androids, but almost all of them are still at least "smart" phones. It's become par for the course.
I don't disagree that simplifying can be the solution some of the time, but I don't think it is simple as that in all cases.
Maybe it's more like the bias of exaggerated self-importance: people believe that their page will be used much more than once (and optimize for that), whereas most pages get their single view and are closed.
Whereas, some sites don't have that problem at all since they mostly use HTML and CSS that's cached and fast-loading. Only the JS parts are slow and I usually don't need them. When I do, they've already loaded. I could see alternatives used for something like Facebook but the old stuff would work for over 90% of sites I see. It would also be more efficient outside network transfer. But they usually use CDN's with whole site cached so who cares.
I like to think that they've got real problems to solve though.
https://www.grc.com/menudemo.htm
Loads fast with plenty usability and effectiveness. Works very well with NoScript, too. So, it's faster, more secure, and gets the job done? Screw it, let's do a single-page, Coffeescript App instead! ;)
Note: That loaded instantly on my smartphone unlike most web apps. I was excited until I clicked the menus. Instead of just opening, it opened and loaded up the page for that menu. Been a long time since I did CSS so I don't know if that's inherent or just a flaw in his implementation. It was done before smartphones. I'm assuming the latter.