Fixing “Eliminate render-blocking JavaScript and CSS in above-the-fold content” Error
- Go to Performance -> General Settings.
- Find the Minify heading on the page.
- Tick the Enable box for Minify.
- Press Save all settings.
How do you remove eliminate render blocking resources in WordPress?
To eliminate render-blocking resources on WordPress, you can use off-the-rack plugins. For a free solution, you can use the combination of Autoptimize and Async JavaScript, two plugins from the same developer.
How do you fix eliminate render blocking CSS?
To summarize:
- Don’t use CSS imports.
- Load conditional CSS with media attributes.
- Use the defer and async attributes to eliminate render-blocking JavaScript.
- Split, bundle, and minify CSS and JavaScript files.
- Load custom fonts locally.
How do I fix render blocking JavaScript in CSS?
First, you need to check the box next to ‘Optimize JavaScript Code’ option under the JavaScript Options block. Make sure that ‘Aggregate JS-files’ option is unchecked. Next, scroll down to the CSS Options box and check the ‘Optimize CSS Code’ option. Make sure that ‘Aggregate CSS-files’ option is unchecked.
How do I fix render blocking?
To reduce the number of render-blocking scripts on your site, you’ll need to follow a few best practices:
- ‘Minify’ your JavaScript and CSS. This means removing all extra whitespace and unnecessary comments in the code.
- Concatenate your JavaScript and CSS.
- Defer the loading of JavaScript.
How do I eliminate render blocking resources?
To eliminate render-blocking resources with Autoptimize:
- Install and activate the Autoptimize plugin.
- From your WordPress dashboard, select, Settings > Autoptimize.
- Under JavaScript Options, check the box next to Optimize JavaScript code?.
- If the box next to Aggregate JS-files? is checked, uncheck it.
How do I get rid of unused CSS and JavaScript in WordPress?
On the post edit screen, you’ll find the Asset CleanUp box just below the post editor. The plugin will automatically fetch and list all the files and assets loaded when a visitor views this page on your website. You can then simply unload the unused CSS or JavaScript files that you don’t need on that page.
How do you eliminate render blocking resources?
How do I get rid of unused JavaScript in WordPress?
Remove Unused JavaScript In WordPress
- Find the source of heavy JavaScript.
- Choose an asset unloading plugin.
- Remove unused JavaScript.
- Use a lightweight page builder (or none)
- Minify JavaScript.
- Reduce third-party JavaScript.
- Defer non-essential JavaScript.
- Delay non-critical JavaScript.