2 ms·
Download link is currently broken, it should be: https://rawgithub.com/nbubna/HTML/master/dist/HTML.min.js.gz https://rawgithub.com/nbubna/HTML/master/dist/HTM
by grey-area 13y ago
Download link is currently broken, it should be:
https://rawgithub.com/nbubna/HTML/master/dist/HTML.min.js.gz https://rawgithub.com/nbubna/HTML/master/dist/HTML.min.js.gz
To those asking why you'd use this in place of jquery, the only reasons to use it are that it is smaller, vastly simpler, and yet does the things which many people use jquery for with a neat syntax. One of the main attractions for me is that it seems to get out of the way far more than jquery - elements aren't wrapped, behaviour is as you'd expect from the DOM, so you don't have to learn a new API just to manipulate objects in the way that you do with jquery.
Re speed issues, if you're using this enough or on documents where speed of selection is an issue, you could simply optimise the particular selector and just use the DOM to get a speed bump. I've not often seen a case in real-life where this matters though, does anyone have any examples we could look at?
If you want to use jquery plugins, cater for IE < 9, or use things like jquery animations or UI obviously you wouldn't want to switch.