{"id":5175,"date":"2019-12-04T08:02:01","date_gmt":"2019-12-04T08:02:01","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=5175"},"modified":"2025-04-23T09:42:03","modified_gmt":"2025-04-23T09:42:03","slug":"how-to-eliminate-render-blocking-javascript-and-css","status":"publish","type":"post","link":"\/uk\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css","title":{"rendered":"How to Eliminate Render-Blocking JavaScript and CSS on WordPress"},"content":{"rendered":"<p>Having a website that loads fast is crucial if you want to rank high in search engine result pages (SERP). That&rsquo;s why website speed testing tools are there to help you optimize your site. If you&rsquo;re getting an &ldquo;<strong>Eliminate render-blocking JavaScript and CSS in above-the-fold content<\/strong>&rdquo; warning while using the tool, fret not. In this article, we&rsquo;ll be showing you how to fix the issue.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all in one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-getting-to-know-eliminate-render-blocking-javascript-and-css-in-above-the-fold-content-warning\">Getting to Know &ldquo;Eliminate render-blocking JavaScript and CSS in above-the-fold content&rdquo; Warning<\/h2><p>If you look at Google&rsquo;s <a href=\"https:\/\/developers.google.com\/web\/fundamentals\/performance\/critical-rendering-path\/page-speed-rules-and-recommendations\" target=\"_blank\" rel=\"noopener\">PageSpeed rules<\/a>, eliminating render-blocking JavaScript and CSS is one of them. Any failure in that will result in a slower page loading speed. But how can JavaScript and CSS on your HTML page slow down your site?<\/p><p>Well, every time you <a href=\"\/uk\/tutorials\/wordpress\/how-to-install-wordpress-plugins\">install a plugin<\/a> or a new theme, they add a JavaScript and CSS code to the front-end. As a result, browsers may need more time to load the page.<\/p><p>Above-the-fold (ATF) means the part of your webpage that is visible when the page first loads. Any part of the page that you have to scroll down to reach is non-ATF.<\/p><p>So, if non-relevant JavaScript and CSS code are rendered when visitors load your website, you might get a warning to reduce the number of render-blocking JavaScript and CSS in above-the-fold content resources.<\/p><h2 class=\"wp-block-heading\" id=\"h-finding-out-render-blocking-javascript-and-css-using-google-pagespeed-insights\">Finding Out Render-Blocking JavaScript and CSS Using Google PageSpeed Insights<\/h2><p>The first step in fixing render-blocking is testing your site&rsquo;s speed using <a href=\"https:\/\/developers.google.com\/speed\/pagespeed\/insights\/\" target=\"_blank\" rel=\"noopener\">Google PageSpeed Insights<\/a>. Follow these steps to do so:<\/p><ol class=\"wp-block-list\">\n<li>Visit the page, and paste your website&rsquo;s URL in the &ldquo;<strong>Enter a web page URL<\/strong>&rdquo; field.<\/li>\n\n\n\n<li>Click <strong>Analyze<\/strong> to get the report.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/12\/Screenshot-2023-01-25-at-11.21.11.png\"><img decoding=\"async\" width=\"1024\" height=\"486\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/12\/Screenshot-2023-01-25-at-11.21.11-1024x486.png\" alt=\"Google Page Insights web page URL analyst report \" class=\"wp-image-76166\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/12\/Screenshot-2023-01-25-at-11.21.11.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/12\/Screenshot-2023-01-25-at-11.21.11-300x142.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/12\/Screenshot-2023-01-25-at-11.21.11-150x71.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/12\/Screenshot-2023-01-25-at-11.21.11-768x364.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>Most sites score between 50-70; this should serve as a benchmark for your score. Google will also list suggestions to improve the performance of your website.<\/p>\n                <\/div>\n\n\n<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/12\/Screenshot-2023-01-25-at-11.22.37.png\"><img decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/12\/Screenshot-2023-01-25-at-11.22.37-1024x522.png\" alt=\"Google PageSpeed Insights desktop diagnostics report\" class=\"wp-image-76167\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/12\/Screenshot-2023-01-25-at-11.22.37.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/12\/Screenshot-2023-01-25-at-11.22.37-300x153.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/12\/Screenshot-2023-01-25-at-11.22.37-150x77.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/12\/Screenshot-2023-01-25-at-11.22.37-768x392.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>If you also find the suggestion to eliminate render-blocking JavaScript and CSS in above-the-fold content, then you will need to fix the issue.<\/p><p>Keep in mind that you should not force your website to score a perfect 100. Just try your best to get a good score without sacrificing user experience.<\/p><p>If there are scripts on your WordPress site that are essential for a robust UX, you shouldn&rsquo;t remove them just to get a slightly higher score on PageSpeed Insights.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>The rules on which Google scores your websites are merely guidelines and should be taken as such.<\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-fixing-eliminate-render-blocking-javascript-and-css-in-above-the-fold-content-error\">Fixing &ldquo;Eliminate render-blocking JavaScript and CSS in above-the-fold content&rdquo; Error<\/h2><p>With WordPress, reducing render-blocking JavaScript and CSS resources on your WordPress site is easy. You can use the three plugins we&rsquo;ve listed below:<\/p><h3 class=\"wp-block-heading\" id=\"h-w3-total-cache\">W3 Total Cache<\/h3><p>One of our favorites is the <a href=\"https:\/\/wordpress.org\/plugins\/w3-total-cache\/\" target=\"_blank\" rel=\"noopener\">W3 Total Cache<\/a> plugin. Once it&rsquo;s installed and activated, follow these steps on your <a href=\"\/uk\/tutorials\/wordpress\/how-to-login-to-wordpress-dashboard\">WordPress admin dashboard<\/a>:<\/p><ul class=\"wp-block-list\">\n<li>Go to <strong>Performance<\/strong> -&gt; <strong>General Settings<\/strong>.<\/li>\n\n\n\n<li>Find the <strong>Minify<\/strong> heading on the page. Then, you will see a few options under this heading.<\/li>\n\n\n\n<li>Tick the <strong>Enable<\/strong> box for <strong>Minify<\/strong>. Then, for the <strong>Minify mode<\/strong> option, choose <strong>Manual<\/strong>.<\/li>\n\n\n\n<li>Press <strong>Save all settings<\/strong>.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/minify-css-and-js-w3-total-cache-1.png\"><img decoding=\"async\" width=\"1024\" height=\"381\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/minify-css-and-js-w3-total-cache-1-1024x381.png\" alt=\"Minify CSS and JS W3 total cache\" class=\"wp-image-78670\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/minify-css-and-js-w3-total-cache-1-1024x381.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/minify-css-and-js-w3-total-cache-1-300x111.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/minify-css-and-js-w3-total-cache-1-150x56.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/minify-css-and-js-w3-total-cache-1-768x285.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/minify-css-and-js-w3-total-cache-1.png 1340w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li>Fetch all render-blocking JavaScript and CSS scripts, which you can find through Google PageSpeed Insights.<\/li>\n\n\n\n<li>Once you&rsquo;ve found the troublemaker, navigate back to <strong>Performance -&gt; Minify <\/strong>on your WordPress dashboard.<\/li>\n\n\n\n<li>Find the<strong> JS<\/strong> section. In the <strong>Operations in areas<\/strong> section, choose the <strong>Non-blocking using &ldquo;defer&rdquo;<\/strong> embed type for the <strong>B<\/strong><strong>efore &lt;head&gt;<\/strong> tag.<\/li>\n\n\n\n<li>For <strong>JS file management<\/strong>, choose your active theme and click on the <strong>Add Script<\/strong> button. Copy and paste the JavaScript URLs from the Google PageSpeed Insights on the fields provided, as shown below.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/JS-minify-setting-w3-total-cache.png\"><img decoding=\"async\" width=\"1024\" height=\"474\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/JS-minify-setting-w3-total-cache-1024x474.png\" alt=\"JS minify setting w3 total cache\" class=\"wp-image-78674\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/JS-minify-setting-w3-total-cache-1024x474.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/JS-minify-setting-w3-total-cache-300x139.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/JS-minify-setting-w3-total-cache-150x69.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/JS-minify-setting-w3-total-cache-768x356.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/JS-minify-setting-w3-total-cache.png 1347w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li>Scroll down and find the <strong>CSS<\/strong> section. For the <strong>CSS file management<\/strong>, choose your active theme and click on <strong>Add a style sheet<\/strong>. Similar to the step above, copy the CSS stylesheets URLs from the PageSpeed Insights and paste them on the required fields.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/CSS-minify-setting-w3-total-cache.png\"><img decoding=\"async\" width=\"1024\" height=\"479\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/CSS-minify-setting-w3-total-cache-1024x479.png\" alt=\"CSS minify setting w3 total cache\" class=\"wp-image-78677\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/CSS-minify-setting-w3-total-cache-1024x479.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/CSS-minify-setting-w3-total-cache-300x140.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/CSS-minify-setting-w3-total-cache-150x70.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/CSS-minify-setting-w3-total-cache-768x360.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/CSS-minify-setting-w3-total-cache.png 1350w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li>Finally, click the <strong>Save Settings &amp; Purge Caches<\/strong> button.<\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-autoptimize\">Autoptimize<\/h3><p>Alternatively, you can use the <a href=\"https:\/\/wordpress.org\/plugins\/autoptimize\/\" target=\"_blank\" rel=\"noopener\">Autoptimize<\/a> plugin to resolve the render-blocking javascript and css error. Perform these steps on your dashboard once the plugin is installed and activated:<\/p><ul class=\"wp-block-list\">\n<li>Go to the <strong>Settings -&gt; Autoptimize<\/strong>.<\/li>\n\n\n\n<li>Check the boxes for <strong>Optimize JavaScript Code?<\/strong>&rdquo; and <strong>Optimize CSS Code?<\/strong><\/li>\n\n\n\n<li>Press the <strong>Save Changes and Empty Cache<\/strong> button.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/autoptimize-optimise-css-and-js-1.png\"><img decoding=\"async\" width=\"1024\" height=\"469\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/autoptimize-optimise-css-and-js-1-1024x469.png\" alt=\"Autoptimize optimise css and js 1\" class=\"wp-image-78678\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/autoptimize-optimise-css-and-js-1-1024x469.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/autoptimize-optimise-css-and-js-1-300x137.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/autoptimize-optimise-css-and-js-1-150x69.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/autoptimize-optimise-css-and-js-1-768x352.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/autoptimize-optimise-css-and-js-1.png 1351w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>In most cases, this is enough to fix the warning. However, the result may vary depending on your theme and active plugins.<\/p><p>To make sure your problem has been solved, run your site through PageSpeed Insights again. If there&rsquo;re any blocking JS and CSS resources left, take the optimization even further by following these steps:<\/p><ul class=\"wp-block-list\">\n<li>Head back to <strong>Settings -&gt; Autoptimize<\/strong>.<\/li>\n\n\n\n<li>Hit the <strong>Show Advanced Settings<\/strong> button.<\/li>\n\n\n\n<li>Then, check the options for<strong> Also aggregate inline JS<\/strong> and <strong>Also aggregate inline CSS<\/strong>.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/advanced-setting-to-optimise-css-and-js-with-autoptimize-1.png\"><img decoding=\"async\" width=\"1024\" height=\"564\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/advanced-setting-to-optimise-css-and-js-with-autoptimize-1-1024x564.png\" alt=\"Advanced setting to optimise css and js with autoptimize\" class=\"wp-image-78680\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/advanced-setting-to-optimise-css-and-js-with-autoptimize-1-1024x564.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/advanced-setting-to-optimise-css-and-js-with-autoptimize-1-300x165.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/advanced-setting-to-optimise-css-and-js-with-autoptimize-1-150x83.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/advanced-setting-to-optimise-css-and-js-with-autoptimize-1-768x423.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/advanced-setting-to-optimise-css-and-js-with-autoptimize-1.png 1345w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li>Save your changes.<\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-speed-booster-pack\">Speed Booster Pack<\/h3><p>Another popular plugin that you may find useful in fixing render-blocking javascript and css error for your WordPress website is <a href=\"https:\/\/wordpress.org\/plugins\/speed-booster-pack\/\" target=\"_blank\" rel=\"noopener\">Speed Booster Pack<\/a>. To do so, follow these steps on your wp-admin area:<\/p><ul class=\"wp-block-list\">\n<li>Go to the <strong>Speed Booster Pack<\/strong> section and access the <strong>Advanced<\/strong> tab.<\/li>\n\n\n\n<li>In the <strong>JavaScript Optimization<\/strong> menu, enable <strong>Move scripts to the footer<\/strong> and<strong> Defer parsing of JavaScript files<\/strong>.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/javascript-optimization-on-speed-booster-options.png\"><img decoding=\"async\" width=\"1024\" height=\"424\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/javascript-optimization-on-speed-booster-options-1024x424.png\" alt=\"Javascript optimization on speed booster options\" class=\"wp-image-78681\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/javascript-optimization-on-speed-booster-options-1024x424.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/javascript-optimization-on-speed-booster-options-300x124.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/javascript-optimization-on-speed-booster-options-150x62.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/javascript-optimization-on-speed-booster-options-768x318.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/javascript-optimization-on-speed-booster-options.png 1349w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ul class=\"wp-block-list\">\n<li>Scroll down to the <strong>CSS Optimization<\/strong> menu to set the CSS render-blocking optimization.<\/li>\n\n\n\n<li>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.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/css-optimization-on-speed-booster-options.png\"><img decoding=\"async\" width=\"1024\" height=\"121\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/02\/css-optimization-on-speed-booster-options.png\" alt=\"CSS optimization on speed booster options\" class=\"wp-image-78682\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/css-optimization-on-speed-booster-options.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/css-optimization-on-speed-booster-options-300x35.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/css-optimization-on-speed-booster-options-150x18.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/css-optimization-on-speed-booster-options-768x91.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>Simply enabling all of them will load your site faster, but may also introduce the unwanted <a href=\"https:\/\/en.wikipedia.org\/wiki\/Flash_of_unstyled_content\" target=\"_blank\" rel=\"noopener\">Flash of unstyled content<\/a> (FOUC) artifact. This happens when the browser loads the web page without waiting for the stylesheet to load, causing a momentary flash of unstyled page.<\/p>\n                <\/div>\n\n\n\n<\/p><p>After trying the methods above, head back to Google PageSpeed Insights to ensure that render-blocking is not an issue anymore.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a href=\"\/uk\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner-1024x300.png\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-1024x300.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-768x225.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-1536x450.png 1536w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Website speed is one of the most important factors in attracting and retaining visitors. This is because search engines consider site speed when ranking results, so <a href=\"\/uk\/tutorials\/speed-up-wordpress\">increasing WordPress site speed<\/a> is essential.<\/p><p>Google&rsquo;s PageSpeed Insights assigns a score to websites based on their loading speeds. If you&rsquo;re getting the infamous Eliminate render-blocking JavaScript and CSS in above-the-fold content suggestion while analyzing your WordPress site performance, simply fix the issue with plugins.<\/p><p>Hopefully, this tutorial is beneficial for you. Feel free to comment below if you have any questions. Good luck!<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Learn Other Expert WordPress Techniques<\/h4>\n                    <p><a href=\"\/uk\/tutorials\/what-are-wordpress-hooks\/\">WordPress Hooks<\/a><br>\n<a href=\"\/uk\/tutorials\/wordpress-custom-css\">How to Add Custom CSS in WordPress<\/a><br>\n<a href=\"\/uk\/tutorials\/wordpress\">WordPress Tutorial<\/a><br>\n<a href=\"\/uk\/tutorials\/edit-html-wordpress\">How to Edit HTML in WordPress<\/a><br>\n<a href=\"\/uk\/tutorials\/wordpress-rest-api\">WordPress REST API<\/a><br>\n<a href=\"\/uk\/tutorials\/how-to-become-wordpress-developer\">Become a WordPress Developer<\/a><\/p>\n                <\/div>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having a website that loads fast is crucial if you want to rank high in search engine result pages (SERP). That&rsquo;s why website speed testing tools are there to help you optimize your site. If you&rsquo;re getting an &ldquo;Eliminate render-blocking JavaScript and CSS in above-the-fold content&rdquo; warning while using the tool, fret not. In this [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/uk\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":83867,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Eliminate Render-Blocking JavaScript and CSS in Above-The-Fold Content","rank_math_description":"Find out how to fix the eliminate render-blocking javascript and css in above-the-fold content warning for your webiste in this article.","rank_math_focus_keyword":"eliminate render-blocking JavaScript and CSS in above-the-fold Content","footnotes":""},"categories":[],"tags":[],"class_list":["post-5175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css-on-wordpress","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/blocage-de-rendu-asynchronous-plugin-rendering","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/quitar-el-javascript-que-bloquea-la-visualizacion-de-contenid-wordpress","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/quitar-el-javascript-que-bloquea-la-visualizacion-de-contenid-wordpress","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/quitar-el-javascript-que-bloquea-la-visualizacion-de-contenid-wordpress","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/quitar-el-javascript-que-bloquea-la-visualizacion-de-contenid-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css-on-wordpress","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css-on-wordpress","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-eliminate-render-blocking-javascript-and-css-on-wordpress","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/5175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/comments?post=5175"}],"version-history":[{"count":34,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/5175\/revisions"}],"predecessor-version":[{"id":122002,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/5175\/revisions\/122002"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/media\/83867"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/media?parent=5175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/categories?post=5175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/tags?post=5175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}