4 ms·
Something I'm constantly trying to do is optimize client load times by removing things such at jQuery. It's very difficult for me to do as jQuery just improves
by overshard 15y ago
Something I'm constantly trying to do is optimize client load times by removing things such at jQuery. It's very difficult for me to do as jQuery just improves my development speed tremendously but I'm getting there. I've started by "stripping out" jQuery and just using Sizzle.js which is the selector engine. Next step is removing Sizzle!
- tomgallard 15y agoIsn't it just wasted effort though? If you're using hosted jQuery from Google or similar, it is likely it is already in the client cache... You may in fact find its faster to use jQuery than just Sizzle (which I imagine fewer have cached)
- pavel_lishin 15y agoAlternatively, this is something that the Application Cache would be ideal for. One-time download, cached forever. (Well, until they clear their cache.)
- MatthewPhillips 15y agoSpeed is not just about page load. JQuery carries the weight of 1) Old browser support and 2) 6 years of backwards-compatibility requirement. Heavy JQuery use is the easiest way to guarantee your app will be sluggish to use.