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>



<?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
jharrisiii
View Replies:
c5mix replied on at Permalink Reply
c5mix
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.
jharrisiii replied on at Permalink Reply
jharrisiii
Thanks.

I'll look there.

jh
c5mix replied on at Permalink Reply
c5mix
You're welcome

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Slate Theme (1.5.3.1).

# concrete5 Overrides
js/jquery.cycle2.min.js, js/bootstrap.min.js, js/jquery.tinycircleslider.min.js, js/jquery.cycle2.js.map, js/main.js, js/jquery.mixitup.min.js, js/gmaps.min.js, js/jquery.mCustomScrollbar.concat.min.js, js/bootstrap.js, js/easyResponsiveTabs.js, js/HeadImage.js, js/jquery.min.js, js/jquery.browser.min.js, js/easyResponsiveTabs.min.js, js/jquery.prettyPhoto.js, css/font-awesome.css, css/font-awesome.min.css, css/animate.min.css, css/animate.css, css/easy-responsive-tabs.css, css/colors, css/main.css, css/bootstrap.min.css, css/bootstrap.css, css/prettyPhoto.css, css/jquery.mCustomScrollbar.css, languages/it_IT, languages/vi_VN, languages/es_PE, languages/ro_RO, languages/ja_JP, languages/ar, languages/nb_NO, languages/tr_TR, languages/fr_FR, languages/es_MX, languages/ru_RU, languages/nl_NL, languages/es_AR, languages/cs_CZ, languages/sv_SE, languages/da_DK, languages/sl_SI, languages/el_GR, languages/pt_PT, languages/zh_TW, languages/fa_IR, languages/he_IL, languages/es_ES, languages/sk_SK, languages/zh_CN, languages/fi_FI, languages/de_DE

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.34

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, recode, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 50M
sql.safe_mode - Off
upload_max_filesize - 50M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.