The pages of a project that I have are having a strange behavior, when being called a page snippet is being loaded, apparently late, the code is this:
<div class="page-banner no-subtitle">
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>PRODUTOS</h2>
</div>
<div class="col-md-6">
<ul class="breadcrumbs">
<li><a href="index.php">Início</a></li>
<li>Produtos</li>
</ul>
</div>
</div>
</div>
Well at the top of the page I have this:
<div class="hidden-header"></div>
And it is associated with .js
, which is this:
var headerEle = function(){ var $headerHeight = $('header').height(); $('.hidden-header').css({ 'height' : $headerHeight + "px" }); }; $(window).load(function () { headerEle(); }); $(window).resize(function () { headerEle(); });
The page has a delay in loading, I tried some options and nothing worked, if I remove or comment the code .js
and page-banner
some.
An example of the behavior can be seen here