Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added some code to show how to preload images to the slideshow example.

  • Loading branch information...
commit 6631606ed327fd996c136c87a45c53e21226216f 1 parent 9efe69b
@srobbin srobbin authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 examples/slideshow.html
View
14 examples/slideshow.html
@@ -26,6 +26,13 @@
"pot-holder.jpg",
"coffee.jpg"
];
+
+ // A little script for preloading all of the images
+ // It's not necessary, but generally a good idea
+ $(images).each(function(){
+ $('<img/>')[0].src = this;
+ });
+
// The index variable will keep track of which image is currently showing
var index = 0;
@@ -50,6 +57,13 @@
"pot-holder.jpg",
"coffee.jpg"
];
+
+ // A little script for preloading all of the images
+ // It's not necessary, but generally a good idea
+ $(images).each(function(){
+ $('<img/>')[0].src = this;
+ });
+
// The index variable will keep track of which image is currently showing
var index = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.