Javascript Jquery预加载程序&;哇

Javascript Jquery预加载程序&;哇,javascript,jquery,wow.js,Javascript,Jquery,Wow.js,我在用电脑 预加载程序工作正常,但当它在页面上预加载了元素时,wow.js动画已经结束。我想编辑我的代码,以便在所有内容预加载后,动画将开始 我读过这篇文章,但它对我的代码不起作用 我的代码: // makes sure the whole site is loaded jQuery(window).load(function() { // will first fade out the loading animation jQuery("#status").fadeOut();

我在用电脑

预加载程序工作正常,但当它在页面上预加载了元素时,wow.js动画已经结束。我想编辑我的代码,以便在所有内容预加载后,动画将开始

我读过这篇文章,但它对我的代码不起作用

我的代码:

// makes sure the whole site is loaded
jQuery(window).load(function() {
    // will first fade out the loading animation
    jQuery("#status").fadeOut();

    // will fade out the whole DIV that covers the website.
    jQuery("#preloader").delay(500).fadeOut("slow");          
})
如果有人能帮助我那就太好了,
谢谢大家!

使用以下代码使用自定义预加载代码实现wow js

// makes sure the whole site is loaded
jQuery(window).load(function() {
// will first fade out the loading animation
jQuery("#status").fadeOut();

// will fade out the whole DIV that covers the website.
jQuery("#preloader").delay(500).fadeOut("slow");

// Here will be the WoW Js implementation.   
setTimeout(function(){new WOW().init();}, 1000);          
})

如果您使用的是预加载程序,而不是使用PaceJs库,那么它会自动处理页面加载和Ajax请求的加载,而且非常容易,所以两者不会发生冲突。