- Replaced
.load(fn)for.on('load',fn)since the former is no longer support in newer jQuery versions #5
- Added
srcAttributeoption so URL can be taken from other DOM attributes, thanks @emri99
- Added
indexto the data object passed to callbacks. - Added setting
enforceCacheto avoid images from being "un-cached"
- Removed some code from the preloaders(images) creation.
- The image used internally for preloading is exposed in the data object as
element. - Removed the use of $.browser for 1.3
- Added a (still commented) code for images that were already cached, TODO: try it
- The onAbort event of images is checked too.
- Patched IE's stack overflows error when preloading +15 images.
- Added a subtle change, that now allows a nifty combination of 2 modes( rollover+placeholder )
- Changed the default threshold to 2, that seems optimum.
- Sometimes IE throws an odd error, when trying to unbind in the end.
- Empty urls or images/links with empty urls are now ignored.
- Relicensed from GPL to GPL+MIT.
- Fixed the problem for Safari 2, which doesn't seem to like the "new Image()", used
$('<img />')instead. Kudos to Ben Southall for helping me test and fix this. - Even if the threshold is 0 or less, one image is used to preload.
- If no valid image is submitted, onComplete is called anyway.
- While doing some "by-hand" optimizations for minified code, I seem to broke something for URL mode. Now it's fixed.
- Reverted one of the optimizations as it's not compatible with jQuery +1.2.2.
- Slightly reduced the code size.
- Had a small bug
- First release, the plugin counts with 4 modes: URL, Link, Rollover and Placeholder.