2
The pages of a project I have are having a strange behavior, when being called an excerpt of the page 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>
Right at the top of the page I have this:
<div class="hidden-header"></div>
And to him is associated a .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 is delayed in loading, I tried some options and nothing took effect, if I withdraw or comment on the code .js
the page-banner
some.
An example of behavior can be seen here
Hello @Eduardo Almeida, thanks for the tip, I did the recommended and the problem still persists.
– adventistapr
Correct me if I’m wrong, but some parts of the page are called through PHP with
require
,require_once
,include
orinclude_once
, right?– StillBuggin
Hello @Eduardo Almeida, the content . php is called by require_once.
– adventistapr