Quote:
Originally Posted by felgall
jQuery is a ridiculous amount of code to use simply for showing and hiding content. You can do it in a dozen lines of easy to read JavaScript without jQuery instead of using the 40k+ of jQuery and a half dozen lines of not so easy to read JavaScript to call the library.
|
Amen to that, people seem to think that jQuery is the be all and end all solution to any Javascript issue. When you're developing for a bandwidth intense environment
(eg, the majority of mobile users) you quickly learn that unless you're doing very fancy stuff it's almost invariably better to either write your on JS or strip down the jQuery library to what you need!
For instance, sean3838's example shows this quite well, compare his line of code to the entire of the jQuery library...