[英]Css Preloader in apex take a while to load
I am using a css preloader for apex web application. 我正在为apex Web应用程序使用CSS预加载器。 problem is that it takes a while to load after any click , so 1st 1 or 2 seconds it doesn't appear. 问题是单击任何按钮后需要一段时间才能加载,因此第一次1或2秒不会出现。 i want it to b started at the moment when i click something. 我希望它在我单击某些东西时开始。 how to make it load immediately? 如何使其立即加载? Code 码
<script type="text/javascript">
jQuery(document).ready(function($) {
$(window).load(function(){
$('#preloader').fadeOut('slow',function(){$(this).remove();});
});
});
</script>
try changing slow to fast like this 尝试像这样慢慢变快
<script type="text/javascript">
jQuery(document).ready(function($) {
$(window).load(function(){.
$('#preloader').fadeOut('fast',function(){$(this).remove();});
});
});
</script>
or you can also use time duration, check this link for further reference.. 或者您也可以使用持续时间,请查看此链接以获取更多参考。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.