Gaya / queryloader2

Version of the QueryLoader by Gaya Kessler. Preload images with ease.
http://blog.gaya.ninja/articles/queryloader2-preload-your-images-with-ease/
MIT License
718 stars 231 forks source link

overlay is not removed in firefox 42/43 #152

Open horans opened 8 years ago

horans commented 8 years ago

it seems that the loader finished its work slower in firefox (half a second slower? maybe it has something to do with loading-line fading out), and missed the chance to remove the qLtempOverlay overlay div.

onComplete: function(){
    //fix firefox bug
    if(navigator.userAgent.indexOf('Firefox') !== -1){
        $('#qLtempOverlay').remove();
    }
}

tested on firefox 42/43

ps, in my case, the queryloader2.min.js script is loaded via $.getScript().

Gaya commented 8 years ago

Thanks for reporting, will take a look. Could be caused by jQuery's getScript

amjo commented 8 years ago

hello, im having the same problem on my website, and instead of being removed, it just stays there.

To add extra info to the scenario: the issue doesn't always happen, it happens when i open a new tab, and let it load in the background. after load completes, i navigate to that page and the qLtempOverlay is still there blocking everything over the web-page.

thanks

Gaya commented 8 years ago

@amjo That's interesting. Maybe an event I am waiting for is not fired. Thanks!

tmjoen commented 7 years ago

I have a similiar problem, but with latest Chrome.

Also, my qLtempOverlay fades in to black, no matter what I set as backgroundColor in options.

The problems started when I upgraded to 3.0.9 if that helps.

Thanks for a great plugin by the way!