4 ms·
is there any small library ala "notjquery.js" that is a drop in replacement for jquery but that calls the browser native stuff directly ? serious question ?
by salimane 13y ago
is there any small library ala "notjquery.js" that is a drop in replacement for jquery but that calls the browser native stuff directly ? serious question ?
- Sivart13 13y agojQuery is a map between its own small grammar and "the browser's generic stuff". You're thinking of jQuery.
- manojlds 13y agoSmaller than jquery would be Zepto.js
- spamizbad 13y agoYou probably want something like Zepto.js. I'd also look into Lo-dash, which is a better, more functional-friendly version of Underscore.js that provides a ton of useful helper functions. Be warned: Zepto doesn't claim to support any version of IE, so if you need IE support you'll want to fall back to jquery (yepnope works. Conditional HTML won't in IE10+).
- bgarbiak 13y agoZepto has an IE10 branch: https://github.com/madrobby/zepto/tree/ie10 https://github.com/madrobby/zepto/tree/ie10
- wldlyinaccurate 13y agojQuery does exactly that, with polyfills for browsers without the native implementation. jQuery 2.x does away with many of the polyfills since older IE versions aren't supported. If you want an even smaller jQuery, you can build your own[0] without the modules you don't need. [0] https://github.com/jquery/jquery#how-to-build-your-own-jquery https://github.com/jquery/jquery#how-to-build-your-own-jquer...