Pre-Loader QueryLoader 2 on C5

Permalink
Hi All:

I know I'm correctly following the steps here:
http://www.gayadesign.com/diy/queryloader2-preload-your-images-with...

But I keep getting a black screen on load - can anyone help?

In order to get this to work with the CORE, I added the following line to my header_required file:

$this->addHeaderItem( $html->javascript('jquery.queryloader2.js', 'CORE' ) );


This enables this script to load right after jQuery.

Now, when applied to the body, I just get a black overLay and it doesn't fade.

Has anyone gotten this to work with a C5-based site?

Thanks,
Keith

MavenMedia
 
Steevb replied on at Permalink Reply
Steevb
I use this set up:
<script src="/themes/AG-2012/js/loader.js" type="text/javascript"></script>
        <script src="/themes/AG-2012/js/script.js" type="text/javascript"></script>


Hope that helps

Steev
MavenMedia replied on at Permalink Reply
MavenMedia
This will load the loader before or after the header_required?

The problem I'm seeing is that you see a glimpse of the body first before you see the loader which in this case, it should be the other way around.

Keith
Steevb replied on at Permalink Reply
Steevb
See it in action:

http://artemi-gibbs.com/