jquery

5 jQuery optimization tips from jsPerf

jQuery is a wonderful library that offers a massive amount of functionality in a nicely wrapped up package. But jQuery is quite bloated, with the minified version weighing in at 94kb. If you’re micro-optimizing, any of these little tips should help to squeeze out the hidden milliseconds on load/run time.

Lucikly there is a website called jsperf.com which allows you to test & compare different blocks of code against each other, and see the results of each – recording how fast each block ran in which browser. Here are some simple but handy tips.

Read More…

Blankit for jQuery – set your targets to blank.

The latest addition to my ever growing list of projects on Github is Blankit – a jQuery plugin for adding target=”_blank” to any matching elements. This was done to avoid the issue of creating a long, content heavy, page and having to go through and manually add target=”_blank” to each a element. This plugin was also contributed to by Seb Pollard, the technical ninja that he is.

Check it out: on github or try out the demo.

Read More…

6 jQuery plugins that are a little bit different

When looking for a jQuery plugin, it can often get a bit tedious scrolling through page after page of scrollers, carousels and crop tools. At one point I ran into an article named “28 Useful JQuery Sliders You Need To Download”. Twenty-eight?! Blimey.

So, to prove to myself that there was more to jQuery than content scrollers, I did some Google’ing and found 6 really unique jQuery plugins/extensions that are worth taking a look at.

Read More…

 Scroll to top