Putting CSS Above JS
-
Hello,
Just installed Autoptimized and configured it. It makes the site noticeably faster.
I’m on WPEngine, and using their page performance tool to test my site. It gives me this suggestion:
If it’s impossible to remove all the blocking JavaScript files, move all CSS requests above them in the page. Otherwise, these requests can’t be made until the JavaScript completes, which will add length to the page load. You host 4 such files, and load 4 from third parties. There are a number of plugins that can help order your files correctly.
Consider putting as much JS in the footer as possible so that it processes after the DOM is rendered.
I enabled all the relevant settings in Autoptimize. Here’s my site: http://cocreationcoaching.org
Here are my settings:
JS:
- Force JavaScript in <head>? Unchecked
- Also aggregate inline JS? Enabled
- Exclude scripts from Autoptimize: seal.js, js/jquery/jquery.js
- Add try-catch wrapping? Unchecked
CSS:
- Generate data: URIs for images?: Unchecked
- Remove Google Fonts? Unchecked
- Also aggregate inline CSS? Checked
- Inline and Defer CSS? Unchecked
- Inline all CSS? Unchecked
Exclude CSS from Autoptimize: admin-bar.min.css, dashicons.min.css
Any way I can improve the above?
I’m also only getting a 62 on Google Page Speed Insights… 🙁
The topic ‘Putting CSS Above JS’ is closed to new replies.