Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I had such a problem, it was decided by the preloader.
Add to head
<style>
body, html { opacity: 0; }
</style>
<!-- preloader -->
<style type="text/css">
.preloader_bg { position: fixed; background: rgba(15,15,15,1); width: 100%; height: 100%; top: 0; left: 0; z-index: 200; }
.preloader_content { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 201; font-size: 14px; }
.preloader_content span { display: block; margin: auto; text-align: center; text-transform: uppercase; color: rgba(225,225,225,1);}
</style>
<script type="text/javascript">
$(function(){
$('.preloader_bg, .preloader_content').fadeIn(0);
$(window).load(function(){
$('body,html').css({ opacity: 1 }); // снимаем прозрачность
$('.preloader_bg').delay(250).fadeOut(1500);
$('.preloader_content').delay(250).fadeOut(750);
});
});
</script>
<div class="preloader_bg"></div>
<div class="preloader_content">
<span>Идет загрузка...<br>Подождите...</span>
</div>
<noscript>
<style>
html, body { opacity: 1 !important; }
.preloader_bg, .preloader_content { display: none !important; }
</style>
</noscript>
<!-- /preloader -->
Highlight the critical css code and load it first. It is even possible to insert it inline into html.
And for preloaders you want to kill. Let it blink better.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question