3 ms·
This is hilariously wrong-headed. - If you use the standard jQuery hosted off Google's CDN, most users won't have to load it in the first place. So that overhe
by ebbv 14y ago
This is hilariously wrong-headed.
- If you use the standard jQuery hosted off Google's CDN, most users won't have to load it in the first place. So that overhead doesn't count. Only if you do some boneheaded thing like rolling your own version and hosting it on your server are you going to guarantee every visitor has to download jQuery.
- Parsing jQuery is trivial for most modern browsers. If your web app has performance issues, it's not jQuery's fault, it's your fault.
- querySelectorAll is not a replacement for jQuery. If you think it is you haven't been making good use of jQuery.
This article seems like a post by someone who didn't even know how to do basic things against the DOM, finally learned how to do them and now thinks there's no use for jQuery. It's absurd.
jQuery still has plenty of uses. I'm not saying you have to use it, or are making a mistake if you don't, but the assertion that it should be abandoned is ludicrous.
Ugh.
- slig 14y ago> - If you use the standard jQuery hosted off Google's CDN, most users won't have to load it in the first place. So that overhead doesn't count. Only if you do some boneheaded thing like rolling your own version and hosting it on your server are you going to guarantee every visitor has to download jQuery. Well, it depends. [1] [1]: http://www.stevesouders.com/blog/2013/03/18/http-archive-jquery/ http://www.stevesouders.com/blog/2013/03/18/http-archive-jqu...
- SoftwareMaven 14y agoThose statistics weren't very helpful. It doesn't matter how many sites are using the CDN, it matters how may people visit those sites. If only 0.05% of sites used it, but 80% of people visited those sites, it would be worth using.
- Offler 14y agoI've found memory leaks in long running single pages apps that were down to jQuery UI components so I wouldn't dismiss jQuery performance doubts so quickly.
- ebbv 14y agojQuery UI is a whole different beast and there's a reason it's required separately. Also at this point the base jQuery UI is pretty solid, but plugins are a different matter.