Author

Topic: Be responsible with Javascript (Read 237 times)

legendary
Activity: 1218
Merit: 1000
December 29, 2015, 01:56:26 PM
#1
Every time a new thing comes around to the web, its abuse seams unavoidable! Happened with Java, with loads of ugly marquee animations at late 90's, happened with Macromedia's DreamWeaver, with all site suddenly looking the very same, happened with Flash, with loads of useless painful applications, sometimes even with (bad) music, and it's happening now with Javascript, more precisely with jQuery.
jQuery framework sure makes it easier to create scripts, but PLEASE, don't overdo it! It's amazing that everyone now adds jQuery sometimes just for a simple $("#id") call - JS already supports getElementById('id') folks, no need to load a framework for that!
And then animations and useless or shortly timed ajax/DOM calls, making a simple site to fire up to over 200Mb of RAM per page, if not crashing the browser, as a late crappy "snowflakes" animation does.

Bottom line, it's OK to use JS, but not OK to abuse it! When you concept a website keep in mind your visitors' hardware and if your site really should require an i7 CPU and 1 Tb of RAM to visit.  Wink
Jump to: