async .js loading?
Permalink Browser Info Environment
From Google PageSpeed Insights...
Your page has 7 blocking script resources and 7 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load.
jquery.js
ccm.base.js
superfish.js
jquery.mousewheel-3.0.4.pack.js
jquery.fancybox-1.3.4.pack.js
functions.js"
I found the loader in the header.php but I'm not a programmer; don't know how to change load to <async>
Your page has 7 blocking script resources and 7 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load.
jquery.js
ccm.base.js
superfish.js
jquery.mousewheel-3.0.4.pack.js
jquery.fancybox-1.3.4.pack.js
functions.js"
I found the loader in the header.php but I'm not a programmer; don't know how to change load to <async>
<?php //Load superfish and fancybox with "unique item handles", to avoid conflicts with other addons that use them $html = Loader::helper('html'); $this->addHeaderItem($html->javascript($this->getThemePath() . '/js/superfish.js', null, array('handle' => 'jquery.superfish', 'version' => '1.7.4'))); $this->addHeaderItem($html->javascript($this->getThemePath() . '/js/fancybox/jquery.mousewheel-3.0.4.pack.js', null, array('handle' => 'jquery.mousewheel', 'version' => '3.0.4'))); $this->addHeaderItem($html->javascript($this->getThemePath() . '/js/fancybox/jquery.fancybox-1.3.4.pack.js', null, array('handle' => 'jquery.fancybox', 'version' => '1.3.4'))); $this->addHeaderItem($html->css($this->getThemePath() . '/js/fancybox/jquery.fancybox-1.3.4.css', null, array('handle' => 'jquery.fancybox', 'version' => '1.3.4'))); Loader::element('header_required'); ?
Type: | |
---|---|
Status: | In Progress |
This is how concrete5 loads the appropriate js files. Not really anyway around it that I know of. You might want to check the main forums to see if there's any solution.
Thanks.
I'll look there.
jh
I'll look there.
jh
You're welcome