Asset.images is really more for loading image elements and extending
those elements.
Pre-loading is basically just making a request to a resource that the
browser will cache.
So you could pretty much just make a Request to that resource and
ignore the response. Something like:
new Request({ url: 'http://meta.projectmio.com/code/
bubble_4.jar' }).get();
new Request({ url: 'http://meta.projectmio.com/code/core.jar' }).get
();
On 23 Mar, 15:47, caturn88 <[email protected]> wrote:
> Hi, my website has a large Java applet on its as the main feature and
> it takes a while to load, without it there is a big blank area. So I
> added this MooTools script from David Walsh (http://davidwalsh.name/
> mootools-image-preloading-progress-bar) that pre-loads images, but I
> need to modify it to pre-load .jar files.
>
> Here is the pre-loading code:
>
> /* preloading */
> var images = ['http://meta.projectmio.com/code/bubble_4.jar', 'http://
> meta.projectmio.com/code/core.jar'];
> var loader = new Asset.images(images, {
> onProgress: function(counter,index) {
> progressBar.set((counter + 1) * (100 / images.length));
>
> },
> });
> });
>
> I have no idea how hard this would be to do, I don't even know if this
> is the part of the code to modify but it titled as the pre-loading
> section, although there is some JavaScript too and I'm not sure if it
> all done there?
>
> But thanks to anybody who is willing to help.
>
> My website is:www.meta.projectmio.com