I am Building a Drupal 7 site.
Thess are some of the modules I use (it may help you understand which CSS & JS I use): Adaptivetheme (theme), Views & content panes, Panels & Mini panels & Panels everywhere, Page manger module, Superfish for menus, Addthis, chosen (drop down) and more.
For improving my site performance and the dealing with the CSS & JS files I am using the Advagg module.
When I running the Pagespeed test of Google I am getting the following error as "Should Fix":
Eliminate render-blocking JavaScript and CSS in above-the-fold
content Your page has 6 blocking script resources and 8 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.
This is the info google supplies:
Is there a way I can change the settings of the advagg module or drupal core, and solve this issue?
Maybe there is another way to achieve this goal?
Update - after implementing changes according to mikeytown2 answer I got the following message on the Pagespeed test of Google:
Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 6 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:
https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js
http://www.mysite.com/…..Xo2mdZX_pzvrHhfQ.js
http://www.mysite.com/…..Xo2mdZX_pzvrHhfQ.js
http://www.mysite.com/…..Xo2mdZX_pzvrHhfQ.js
http://s7.addthis.com/js/300/addthis_widget.js
http://www.mysite.com/…..CXo2mdZX_pzvrHhfQ.js
Optimize CSS Delivery of the following:
http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,700
http://www.mysite.com/…..Xo2mdZX_pzvrHhfQ.css
http://www.mysite.com/…..Xo2mdZX_pzvrHhfQ.css
http://www.mysite.com/…..Xo2mdZX_pzvrHhfQ.css
Here is the link to my site (so you could check the CSS & JS): http://www.recipespeople.com
async
which is not supported by old browsers. Eg, the default Drupal aggregation includes<link>
tags for all your css. If your site CSS or JS is too complex you'll always have this issue. If you build your site correctly you can aggregate files safely. With no info on the file dependencies the question details are too broad -- a module can never fix his issue; it's all about how the CSS and JS is written and its inclusion order and complexity. he never said he wanted non-blocking, your assuming thats what he wants. – tenken Mar 20 at 15:14