Highlight.js. HTML9 Responsive Boilerstrap JS. Preloading Images with jQuery and JavaScript. Creating effects on websites using jQuery and other JavaScript has really grown from flashy extras to full on applications in the browser. Part of slick applications is images. They might be part of the content being loaded or something like an icon in an application.
But, for those images being added after the page is loaded there can be a time gap while that image is downloaded. To avoid those time delays the images can be preloaded in the background. Lets take a look at how to do that. A jQuery Script Here is a simple jQuery script to preload the images. (function($) { var cache = []; // Arguments are image paths relative to the current page. $.preLoadImages = function() { var args_len = arguments.length; for (var i = args_len; i--;) { var cacheImage = document.createElement('img'); cacheImage.src = arguments[i]; cache.push(cacheImage); } }})(jQuery) You'll notice that this isn't anything special to jQuery. To use the preloading make a call like: Breaking Down The Script var cache = []; jQuery TOOLS - The missing UI library for the Web.
Select2 2.0.