Search Console
Googlebot cannot access CSS and JS files on http://www.xxxx.com/
To: Webmaster of http://www.xxxx.com/,
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.
Here's how to fix this issue:
1
Identify blocked resources
Use the "Fetch as Google" feature to identify those resources that robots.txt directives are blocking.
Fetch as Google
2
Update your robots.txt file
Remove the restrictions on your site's CSS and JavaScript files from your robots.txt directives and test the changes with the Robots.txt tester. Then update your revised robots.txt file on your site and submit it to Search Console.
Test Robots.txt
3
Validate the fix using “Fetch as Google”
Fetch and Render your page with the “Mobile: smartphone” option selected to double-check that Googlebot for smartphones renders your content properly.
Fetch as Google
Not sure how to fix this? Learn more.
• How to test your robots.txt file in our Help Center
• Google guide to building mobile-friendly site.
• See our Robots.txt specifications to learn to control which crawler can access which files.
• Prevent your pages from being indexed in Google by using robots meta tags or X-robots-tag HTTP headers.
• Ask questions in our forum for more help - mention message type [WNC-658001].
Googlebot cannot access CSS and JS files on http://www.xxxx.com/
To: Webmaster of http://www.xxxx.com/,
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.
Here's how to fix this issue:
1
Identify blocked resources
Use the "Fetch as Google" feature to identify those resources that robots.txt directives are blocking.
Fetch as Google
2
Update your robots.txt file
Remove the restrictions on your site's CSS and JavaScript files from your robots.txt directives and test the changes with the Robots.txt tester. Then update your revised robots.txt file on your site and submit it to Search Console.
Test Robots.txt
3
Validate the fix using “Fetch as Google”
Fetch and Render your page with the “Mobile: smartphone” option selected to double-check that Googlebot for smartphones renders your content properly.
Fetch as Google
Not sure how to fix this? Learn more.
• How to test your robots.txt file in our Help Center
• Google guide to building mobile-friendly site.
• See our Robots.txt specifications to learn to control which crawler can access which files.
• Prevent your pages from being indexed in Google by using robots meta tags or X-robots-tag HTTP headers.
• Ask questions in our forum for more help - mention message type [WNC-658001].