Adding an image preload plug-in for jQuery


show more Adding an image preload plug-in for jQuery provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create an Interactive Photo Gallery with jQuery and Dreamweaver show less
please wait ...

Adding an image preload plug-in for jQuery

Now, when we first started our JavaScript file and hooking jQuery into here, we used this feature called the document ready. But the document ready makes sure that all scripts and all HTML and text are downloaded from a particular web page. What it doesn't do is download images. There are a few ways that we can actually preload images. There's lot of free plug-ins up on line. So the one that I really like is one called far IN space. So in the Final Project folder, in the include, there is a directory called farinspace. And there is a README file in here, and the README file will give you a link to the web site where you can download a copy of this.

You can also read about its usage. What I really like about this is it is a plug-in, so that means we simply link to one JavaScript file and we can use a very simple statement, such as .image preload, point to an image or a div containing images, and this script will automatically preload all the images that it sees, and when it's do...

Adding an image preload plug-in for jQuery
Video duration: 2m 22s 1h 55m Intermediate

Viewers:

Adding an image preload plug-in for jQuery provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create an Interactive Photo Gallery with jQuery and Dreamweaver

please wait ...