How to Overcome the Googlebot Cannot Access Your JavaScript and/or CSS Files – Have you get a notice like “Googlebot cannot access your JavaScript and / or CSS files” on your webmaster tools’s dashboard? If yes, immediately clean up these problems so that your website will survive in Google search engine machine. The warning already include links how to fix these problem, but the instruction given is too simple and difficult to understand. Follow these tips so that the Googlebot will access your css and javascript files perfectly.

How To Overcome The Googlebot Cannot Access Your JavaScript And CSS Files

The importance google can access your javaScript and/or CSS files.

In the mobilegeddon’s era, google expect better rankings from the sites that have been supported mobile responsive’s theme and has a good loading speed. In order to determine whether the site is worth rank top position search engine google, google need to check JavaScript and/or CSS files to determine your site has gone well or not.

Not all sites have received a warning ‘Googlebot cannot access your JavaScript and/or CSS files’. But sometimes we forget or wrong in setting up for a robots.txt file.

Once we know the reality that will be very important for us to open up access to the file so that Googlebot have an access, now let’s see how you can find these files and to unblock it.

Here is the complete statement by google

Google systems have recently detected an issue with your homepage that affects how well our algorithms render and index your content. Specifically, Googlebot cannot access your JavaScript and/or CSS files because of restrictions in your robots.txt file. These files help Google understand that your website works properly so blocking access to these assets can result in suboptimal rankings

How to overcome the Googlebot cannot access your JavaScript and/or CSS files

Please log in to Google webmaster tools and then enter the menu Google indexs » Blocked Resources, then if you got warning message Googlebot cannot access your files, you will find in the list of blocked resources. You can also find a list of resources blocked at the bottom of the menu.

If there are errors because Googlebot cannot access your css and javascript files, you need to do is edit your robots.txt , which is a robots.txt file using to control all of the settings that can be accessed or blocked’s files.

If your site using WordPress and you have installed the SEO plugin by Yoast, you can edit the robots.txt file from your WordPress admin area. Simply to go to the SEO page » Tools and then click File Editor. remove the following line

Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /wp-content/plugins/
Disallow: /wp-content/themes/

If you look at your robots.txt file is empty but you still got warning “Googlebot cannot access your CSS and JS files” on your webmaster tools, it is likely that your hosting provider to block the access to WordPress default folder. You can change this in robots.txt so that Googlebot can access to the blocked folders.

User-agent: *
Allow: /wp-includes/js/

I hope this article helps you to resolve the error ‘Googlebot cannot access JavaScript and/or CSS files ‘ on your site.

Thus article about How to overcome the Googlebot cannot access JavaScript and/or CSS files, hope useful.

The following two tabs change content below.
This site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.

Leave a Comment

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.