7 ms·
Yeah, you don't need anything. You can write all your apps in vanilla JS, but if you feel like speeding up development...
by lolwhat 12y ago
Yeah, you don't need anything. You can write all your apps in vanilla JS, but if you feel like speeding up development...
- walshemj 12y agoand slowing down your website
- pizzasynthesis 12y agojQuery is usually cached in your browser because of how common it is. From what I understand, the slowing is negligible. Part of a developer's role is to mitigate site performance with the speed of process. Inlining of critical CSS is one way to balance out initial page load, for example.
- icantthinkofone 12y agoThis is part myth. The chances your site has the same version of jQuery that the visitor's browser cache is are pretty low. iirc, someone once said it was less than 5%.
- lolwhat 12y agomost of the time, it's less than 1% http://www.stevesouders.com/blog/2013/03/18/http-archive-jquery/ http://www.stevesouders.com/blog/2013/03/18/http-archive-jqu...
- lolwhat 12y agowell that's the trade-off, isn't it? unless my app is speed-heavy, i'm not gonna spend the extra man-hours needed (that jquery saves me) so that website runs negligibly faster.
- walshemj 12y agogood luck ranking in google and explaining your self to your md when your major publishing site takes 20 seconds to load I wont mention any names but I know of two cases of this.
- shakethemonkey 12y agoThe jQuery library is 45k, half that if gzipped. If it's taking 20 seconds to load, your birds are too slow.[1] [1] https://tools.ietf.org/html/rfc1149 https://tools.ietf.org/html/rfc1149
- lolwhat 12y agoif it takes 20 seconds to load, you have bigger problems than jquery.
- walshemj 12y agoFrom experience where there is jquery there is normally at least a dozen other js files cut n pasted at random along with a similar number of css files with no thought to efficiency - hell most sites I se they can't even optimised the godamm images using Photoshop properly.
- thedufer 12y ago"JQuery is bad because some people who use it do unrelated things wrong"? Should I stop driving because some other people who use cars happen to cheat on their taxes?