Posts Tagged: jQuery

jQuery.waitFor plugin

Sometimes jQuery(document).ready() isn’t fast enough. It doesn’t do anything until the entire DOM has loaded. But sometimes you want your code to run against your DOM elements immediately rather than waiting until the rest of the page DOM is done. You can do this with jQuery.waitFor, a new plugin. Continue reading “jQuery.waitFor plugin” →

Adobe Refresh 2012

Last month I attended Adobe’s Refresh 2012 event. This is a roadshow where they present highlights from the current and upcoming product line for designers and developers. They talked about the future of Flash and their product strategy, and they showed some very neat tools. Continue reading “Adobe Refresh 2012” →

HTML5 — Barcamp Auckland 5

The last proper session I went to at Barcamp Auckland 5 was “Extreme AJAX – beyond the hashbang, building a robust single page JS framework and URL schema”, presented by Barry Hannah (@barryhannah) & Mark Zeman (@markzeman). They worked on the excellent newzealand.com redesign and gave some insight into its engineering. Continue reading “HTML5 — Barcamp Auckland 5” →

Simple Combo jQuery plugin 1.1

I have just updated my Simple Combo jQuery plugin to work with recent versions of jQuery. When jQuery 1.5 came out, there was a change to its selector engine that stopped Simple Combo from modifying select lists. Then jQuery 1.5.2 introduced a subtle change to the events code that interfered with typing into combos.

Both these issues have now been fixed. Continue reading “Simple Combo jQuery plugin 1.1” →

jQuery 1.5: Better, Faster… Bigger

Back when jQuery was heading towards its 1.0 release, one of the things that really impressed me was its small size. Only about 15KB of uncompressed code was enough to turn JavaScript (and particularly DOM manipulation) from a chore into a pleasure. But with each new release, new features and speed optimisations have inevitably bloated the library. Every time a new release came out, it seemed to me that the svelte jQuery I knew and loved was receding further into the past. Now that jQuery 1.5 is out, I thought I would see how jQuery has grown in size as well as stature with each release.

Graph of jQuery download size over time
Continue reading “jQuery 1.5: Better, Faster… Bigger” →

Simple Combo Box jQuery plugin

I have just released simpleCombo, a jQuery-based combo box widget that is

  • simple
  • lightweight
  • consistent with native widget look and feel

You can try out some simpleCombo demos, and download simpleCombo from the simpleCombo project page at jquery.com. For more details, read on. Continue reading “Simple Combo Box jQuery plugin” →

elementReady: a jQuery plugin

Please see waitFor, the updated version of elementReady.

I have written a simple but useful jQuery plugin. elementReady calls a function during page load as soon as a specific element is available — even before the full DOM is loaded. It’s useful if you have unobtrusive JavaScript that you want to apply to particular page elements immediately, without having to wait for the whole DOM to load in a large page. Continue reading “elementReady: a jQuery plugin” →

Share This (jQuery): a WordPress plugin

I have made a useful modification to Alex King’s excellent Share This WordPress plugin. Share This adds a nice popup to your posts allowing readers to easily submit the post to any number of social networking and news sites. The original version relies on the large Prototype JavaScript library, which adds to the download size for the page. Share This only uses a sprinkling of its features, so I wanted to replace it with something smaller. Continue reading “Share This (jQuery): a WordPress plugin” →

Optimised jQuery Corners plugin

I’ve created an optimised version of Dave Methvin’s excellent jQuery corner plugin. This allows jQuery users to apply all sorts of fancy effects to the corners of web page elements: the now-standard Web 2.0 rounded corners, bevels, dog-ears and many more. The plugin works by injecting extra elements into the page, and I noticed a way to achieve the same effect with fewer elements. This improves the speed and memory usage of the plugin. Continue reading “Optimised jQuery Corners plugin” →