Bitcoin Forum

Other => Off-topic => Topic started by: BCEmporium on December 29, 2015, 06:56:26 PM



Title: Be responsible with Javascript
Post by: BCEmporium on December 29, 2015, 06:56:26 PM
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.  ;)