Releases: FreshVine/jQuery-cache-images
1.8.0
Broken Caches and automatic Re-Fetching
This release focused on 2 primary goals. To ensure that we verify syntaxtically correct base64 encoded strings before use/storage. And that we automatically attempt to re-fetch images that are corrupted.
As we've been using this library int he wild we've run into instances where the local keys for images exist, but they are not correctly stored. This resulted in 'blank' images being shown (the default image not the one expected). Instead of asking the user to clear their cache so that new images would be fetched, we have updated the script to do this for them.
The Demo has also been updated to function correctly for both localStorage
and indexedDB
. There is also a new button that will corrupt the cached version of the cat gif. You can see in the console log whenever an image is fetched (and what method is used).
The debug console messages were also overhauled to be more explicit and focused. This should help anyone wishing to use the library going forward.
1.7.0
Correctly Implement Callbacks
Callbacks are required for the IndexedDB to work (as the sqLite queries are not asyncronous). These callbacks are now fully implemented into the Image Caching plugin.
Also added a new Start
function that fires everytime a new instance of $().cacheImages()
is initiated.
v1.6.0
Two issues fixed with this release. The caching will now work with background images in the same way that it can be used for img elements. Though if a element has both an src and css background image the src will be captured.
We also added support for forceSave. This is a new option you can use with the jQuery function.
$(selector).cacheImages({url: 'http://awesom.tld/sweet.img', forceSave: true } );
Callbacks also added for droping cached media. Note that the callback is the second condition in the drop function
$.fn.cacheImages.drop( url, callbackFunction, storagePrefix );
v1.5.0
v1.4.0
Re-ordered the params on the cacheImages.Output() function so that the storage prefix is now last (since it is most likely to be set using the config approach of:
$.fn.cacheImages.defaults.storagePrefix = 'yourPrefix';
The updated function is now ordered as:
$.fn.cacheImages.Output = function( url, callback, storagePrefix ){ }