3 ms·
> Really? 93kb of code is lightweight? Yeah I know it gzips smaller, but that's still not what I'd call "ligthweight". It's not bloated, but it's certainly no
by camus2 13y ago
> Really? 93kb of code is lightweight? Yeah I know it gzips smaller, but that's still not what I'd call "ligthweight". It's not bloated, but it's certainly not a micro-lib.
use a cdn, anyway most browsers support gzipped requests.
> Especially if you're only using a small portion of that 93kb of jQuery, and could just "do it yourself".
"do it yourself" if you can be sure it will work on as many browsers as jquery.
Do you think most people have the capability to test their DOM related code on as much browsers ? or are you telling people to ship broken code ?
jQuery is one of the only library that is tested on a wide range of devices. But you dont care ,you are not responsible for people's failure to deliver code that works everywhere.
And it's not just a IE8 issue. Some mobile browsers have serious DOM issues that will never be fixed ( Android 2.3, safari ), and these cases are handled by jquery. Can you fix people's "diy" code? no, so dont give developpers bad advices.
My advice is, if you dont have the capability to test on a wide range of devices , dont "DIY" , your code will be break for sure.