How do I remove render-blocking java script?

Permalink
My site is under suspension from Google AdWords. They want me to fix the following, but I am not sure how.

58 / 100Speed

Should Fix:
Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 2 blocking script resources and 4 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. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
Remove render-blocking JavaScript:
http://unconquerdpeople.com/…ete5.6.3.1_updater/concrete/js/...
http://unconquerdpeople.com/…e5.6.3.1_updater/concrete/js/cc...

View Replies:
hutman replied on at Permalink Reply
hutman
Your links show that you are running 5.6.3.1 but your question is in the 5.7 Discussion section of the forum, which version of C5 are you trying to do this for?
jawara replied on at Permalink Reply
Question is for 5.6.3.1



-----Original Message-----
From: concrete5 Community <[email protected]>
To: Unconquerd1 <[email protected]>
Sent: Wed, Jan 28, 2015 3:46 pm
Subject: How do I remove render-blocking java script? : 5.7 Discussion
hutman replied on at Permalink Reply
hutman
You should be able to:

Copy the /concrete/elements/header_required.php into /elements/header_required.php
Remove
$html = Loader::helper('html');
$this->addHeaderItem($html->css('ccm.base.css'), 'CORE');
$this->addHeaderItem($html->javascript('jquery.js'), 'CORE');
$this->addHeaderItem($html->javascript('ccm.base.js', false, true), 'CORE');

Copy the /concrete/elements/footer_required.php into /elements/footer_required.php
Add to the top
$html = Loader::helper('html');
$this->addFooterItem($html->css('ccm.base.css'), 'CORE');
$this->addFooterItem($html->javascript('jquery.js'), 'CORE');
$this->addFooterItem($html->javascript('ccm.base.js', false, true), 'CORE');
madesimplemedia replied on at Permalink Reply
madesimplemedia
This is pretty nice and easy. However, there are another 2 files being added on my site that I need to move to the footer:

<script type="text/javascript" src="/concrete/js/jquery.ui.js"></script>
<script type="text/javascript" src="/concrete/js/ccm.app.js"></script>

These don't appear in header_required, not sure where they are coming from?
hopecrc replied on at Permalink Reply
Can we also have an answer to the same question but for 5.7?
hopecrc replied on at Permalink Reply
Can we also have an answer to the same question but for 5.7?