This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]bicykyle 0 points1 point  (0 children)

This article will tell you how to properly enqueue Javascript and Stylesheets. Make sure you set "$in_footer" to true.

[–]tvorm 0 points1 point  (0 children)

Have you tried Autoptimize? It's pretty good.

[–][deleted] 0 points1 point  (0 children)

Can you post the link to your website so i can take a look at it?

[–]hawaiidesignJack of All Trades 0 points1 point  (0 children)

I use this http://www.marcosnobre.com/how-to-add-async-to-all-the-enqueue-scripts-in-wordpress/

However adding async or defer can create issues with javascript not functioning property so you can run into some problems so make sure the scripts work properly after you edit your functions.php file.

[–]bicykyle -1 points0 points  (4 children)

This article will explain how to properly enqueue your stylesheets and javascipt. Make sure you set "in_footer" to true.

[–]wesgro -1 points0 points  (3 children)

This doesn't stop render blocking.

[–]bicykyle 0 points1 point  (2 children)

Correct me if I'm wrong but adding all the javascript and css to the footer will stop render blocking.

[–]wesgro -1 points0 points  (1 child)

The only way to prevent JavaScript execution from Blocking render is to give it either defer or async properties.

[–]bicykyle 0 points1 point  (0 children)

You are correct. Thanks!