Indeed. Even though these JS libraries have become Phat and Heavy, they are specifically designed to “abstract away” the numerous browser- and browser-version specific bits, like this very one. jQuery is the dominant one out there right now, but it’s not the only one. Some, such as Prototype.js, are quite a bit smaller. (I humbly stand corrected ...) However, the bottom line is ... don’t even try to ride this pony bareback. Use a saddle.
| |
Some, such as Prototype.js, are quite a bit smaller.
Without qualifying that statement to discuss UI libs or something, it’s not right; Prototype is almost exactly twice as big as jQuery. And FWIW Prototype is near the end of the list I’d recommend due to the richness of other kits and its history of screwing up built-ins and not playing well with other kits.
~/>wget "http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min
+.js"
~/>wget "http://ajax.googleapis.com/ajax/libs/prototype/1.7.2.0/protot
+ype.js"
~/>sl prototype.js jquery.min.js
-rw-rw-r-- 1 moo staff 95786 May 12 19:26 jquery.min.js
-rw-rw-r-- 1 moo staff 197777 Apr 23 01:11 prototype.js
| [reply] [d/l] |
| |