3 ms·
Good call on a non-js version, this was abstracted from some code for a larger project. When I find the time I'll update the repo with a branch for a non-jQuery
by tsvensen 14y ago
Good call on a non-js version, this was abstracted from some code for a larger project. When I find the time I'll update the repo with a branch for a non-jQuery version, but there are plenty of simple scripts out there.
Also, jQuery is 32KB minified and gzip'd AND that's if it's not already cached. Using the Google CDN helps as well, chances are you may not even be downloading it. Not looking to get into a jQuery vs. js debate.
"I don't always write jQuery, but when I do, I use Javascript"
- b3tta 14y agoI know that. In fact I use jQuery in almost every website I'm writing, because I need backwards compatibility with older browsers. But since I started working on a certain website which only supports IE9, I'm pretty much only using jQuery for $.fn.animation. I just feel like it's a huge waste of computing time. Apart from that I think it's important to write "cross-library" plugins.