Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Docs changed

  • Loading branch information...
commit 251094c454de87a40cc8e1b55fffd762db8dfc3c 1 parent 812c5e9
Glavan Dumitru authored
Showing with 8 additions and 1 deletion.
  1. +7 −0 README
  2. +1 −1  assets/jquery.imageCache.js
View
7 README
@@ -11,6 +11,13 @@ Set up get_image.php to return base64 encoded content from the server.
<li><img src="assets/test-image-5.jpg" class="imageCache" /></li>
</ul>
+Or you can ommit the SRC attribute and store it in data-src, because some browseres still request the server to see if the image is not changed:
+
+<ul>
+ <li><img src="" data-src="assets/test-image-4.jpg" class="imageCache" /></li>
+ <li><img src="" data-src="assets/test-image-5.jpg" class="imageCache" /></li>
+</ul>
+
<script type="text/javascript">
$('img.imageCache').imageCache();
</script>
View
2  assets/jquery.imageCache.js
@@ -5,7 +5,7 @@
*
* @author Dumitru Glavan
* @link http://dumitruglavan.com
-* @version 1.0
+* @version 1.1
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://dumitruglavan.com/jquery-image-cache-plugin-cache-images-in-browsers-local-storage/
Please sign in to comment.
Something went wrong with that request. Please try again.