I have a few elements that I need to download before the user controls the page (mainly images, video and audio). I am currently loading them using the $ .when () function, for example:
//all elements are hidden, except for a black background and //a "loading" gif in the middle. $.when($.ajax("video1.ogv"), $.ajax("video2.ogv"), $.ajax("videoN.ogv")) .then(function () { //show the site with all the content preloaded... });
Is there a way to create a loading bar showing the progress (in percent) of all items loaded in the background? For example, what happens on most flash sites with heavy media, for example: http://www.saizenmedia.com/nightwishsite/
Is it possible to do this only with jQuery or Javascript?
Thanks in advance!
source share