Warning: Cannot modify header information - headers already sent by (output started at /home/n742ef5/public_html/forum/index.php:3) in /home/n742ef5/public_html/forum/wp-content/plugins/asgaros-forum/includes/forum-online.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at /home/n742ef5/public_html/forum/index.php:3) in /home/n742ef5/public_html/forum/wp-content/plugins/asgaros-forum/includes/forum-unread.php on line 43

Warning: Cannot modify header information - headers already sent by (output started at /home/n742ef5/public_html/forum/index.php:3) in /home/n742ef5/public_html/forum/wp-content/plugins/asgaros-forum/includes/forum-unread.php on line 82
How to Eliminate Render-Blocking JavaScript and CSS on WordPress – Sithtamil – My Notes

Forum

Please or Register to create posts and topics.

How to Eliminate Render-Blocking JavaScript and CSS on WordPress

Autoptimize

Alternatively, you can use the Autoptimize plugin to resolve the render-blocking javascript and css error. Perform these steps on your dashboard once the plugin is installed and activated:

  1. Go to the Settings -> Autoptimize.
  2. Check the boxes for Optimize JavaScript Code?” and Optimize CSS Code?
  3. Press the Save Changes and Empty Cache button.
    Optimize CSS and JavaScript with Autoptimize plugin

In most cases, this is enough to fix the warning. However, the result may vary depending on your theme and active plugins.

To make sure your problem has been solved, run your site through PageSpeed Insights again. If there’re any blocking JS and CSS resources left, take the optimization even further by following these steps:

  1. Head back to Settings -> Autoptimize.
  2. Hit the Show Advanced Settings button.
  3. Then, check the options for Also aggregate inline JS and Also aggregate inline CSS.
    advanced setting to optimise css and js by agregating inline CSS and JS as well
  4. Save your changes.

Speed Booster Pack

Another popular plugin that you may find useful in fixing render-blocking javascript and css error for your WordPress website is Speed Booster Pack. To do so, follow these steps on your wp-admin area:

  1. Go to the Speed Booster Pack section and access the Advanced tab.
  2. In the JavaScript Optimization menu, enable Move scripts to the footer and Defer parsing of JavaScript files.
    Enabling Move scripts to the footer and Defer parsing of JavaScript files on the JavaScript Optimization section to fix the eliminate render-blocking javascript and css in above-the-fold content error
  3. Scroll down to the CSS Optimization menu to set the CSS render-blocking optimization.
  4. You will find additional settings for inlining all CSS, minifying all (previously) inlined CSS, and moving all inlined CSS into the footer. Experiment with these options to find a proper solution.
    Experiment with the CSS Optimizations to find the proper solution