Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDeeana Parent
1,699 PointsHow To 'Remove Render-Blocking JavaScript' On Wordpress Site
I am working on speeding up a client's website: http://www.camillajhards.com/. Google's PageSpeed tool flags up 'render-blocking javascript' as slowing down the page speed.
I understand I need to remove the JavaScript from the head of the website but I am not sure how to do this or where to put it.
It is a Wordpress website, and so far, plugins have done nothing to help.
1 Answer
Alex Lewis
15,619 PointsTrying sticking your script tags at the bottom of the html tag (just inside the last </html>). I suspect that part of the page isn't loading until some javascript is run and that is what the pagespeed tool is actually complaining about.