diff --git a/jquery_loadinganimation.js b/jquery_loadinganimation.js index d64df4d13736a3585c68df17af51675046af0028..beb0367ec1be0b6b6db536b9a3ba4f88e613dd2f 100644 --- a/jquery_loadinganimation.js +++ b/jquery_loadinganimation.js @@ -92,10 +92,6 @@ // object after init! Drupal.behaviors.jquery_loadinganimation.Loadinganimation = this; - // Preload images. - jQuery.preload_images(Drupal.settings.basePath - + Drupal.settings.jquery_loadinganimation.img_src); - /** * Displays the loading animation. */ @@ -116,22 +112,6 @@ }; }; - /** - * Preload images via jQuery. - */ - (function($) { - var images_cache = []; - // Arguments are image paths relative to the current page. - $.preload_images = function() { - var arg_length = arguments.length; - for ( var i = arg_length; i--;) { - var image_to_cache = document.createElement('img'); - image_to_cache.src = arguments[i]; - images_cache.push(image_to_cache); - } - }; - })(jQuery); - /** * Initialization */