Google mass warnings about blocked JavaScript & CSS

August 3, 2015 by

Comments Off on Google mass warnings about blocked JavaScript & CSS

Last week many website owners received alerts from Google notifying them that their sites are blocking vital CSS and JavaScript files that can lead to “suboptimal rankings” in Google because this prevents Google being able to fully render webpages the way they get rendered to users. Google wants to be 100% certain that what you show them is identical to what people see, otherwise the door is left open to spammers.

The alerts are coming in the form of a message from within the Google Search Console (formerly Google Webmaster Tools), as well as a detailed email message like the one shown below.

 

google-search-console-warning

The warning about suboptimal rankings is not new, but the Search Console notifications are.

Google updated their webmaster guidelines in October 2014  and warned then that blocking CSS and JS can result in “suboptimal rankings.” Now Google is making that message loud and clear by using notifications via email and the Search Console.

Why should you care?

If you received this notification, follow the instructions in the email to diagnose the issue and use the fetch and render tool within the Search Console to see what Google sees and identify resources your robots.txt file directives are blocking. In many cases this is being caused by website content management systems (CMS) by default blocking include folders which contain CSS and JS files.

After this, update your robots.txt file to remove any restrictions on your site’s CSS and JavaScript files. Test the changes with the Robots.txt tester, then update your revised robots.txt file on your site and submit it to Search Console.

As a follow-up, Google is also recommending that you add the following to your robots.txt file:

User-Agent: Googlebot Allow: .js Allow: .css

You should also double check to be sure you’re not missing anything by checking out the Blocked Resources section within the Google Search Console.


Other search marketing news this week:

The latest news about web marketing, SEO, PPC Advertising & Web Analytics. But only the stuff that matters from a New Zealand perspective. Click here to get this delivered to your inbox each Monday.

Subscribe

If you found this useful, please tell your friends.

Comments are closed here.