5 ms·
And definitely replace jQuery with Zepto (which is more-or-less a drop-in replacement), if you have control of the client (non-IE) or especially are working in
by sjs382 13y ago
And definitely replace jQuery with Zepto (which is more-or-less a drop-in replacement), if you have control of the client (non-IE) or especially are working in mobile.
- mcdougle 13y agoI've not heard of Zepto. Out of curiosity, why use it over jQuery?
- sjs382 13y agoWhen using Phonegap (and mobile web in general), I've experienced a pretty major delay between page load and jQuery running. Zepto seems to run instantly. YMMV.
- deleted 13y ago[deleted]
- SkyMarshal 13y agoIt's minimalist. http://zeptojs.com/ http://zeptojs.com/
- sehr 13y agoProbably the file size argument, last time I read one of these discussions jQuery was 3x bigger gzipped at ~30kb.
- mcdougle 13y agoOk, that makes sense, especially for mobile development. I looked it up, and it seems to be missing quite a bit, including the .noConflict() option, which I seem to have to use quite a bit when working on others' code....
- SkyMarshal 13y agoI wouldn't say "definitely". Even Foundation has gone back to jQuery.