Don’t block your CSS and JS filesgozen
“Googlebot cannot access CSS and JS files”
Yesterday a notice was sent out from Google Search Console that a lot of webmasters have probably gotten. It basically tells people they shouldn’t be blocking their CSS and JS files.
In effect, nothing has changed much, but Google’s focus on it has definitely increased. Based on a number of emails we saw people get, this is probably going to start a little fuzz again. Luckily Google provides the webmasters with a nice list of what to do.
It basically comes down to changing your robots.txt so it does not disallow access to your site’s CSS and JS files anymore.
One more thing that needs our attention and your attention as a webmaster is the fact that Google mentions twice in this email the fact that your site needs to be mobile-friendly. Well yes, that’s not related to the blocking fo your JS and CSS files but they just wanted to mention twice that “Mobilegeddon” is still in full motion.
So what’s the solution to this problem?
It’s as simple as that, just remove the disallow on your CSS and JS folders ….and yes there are people out there that also use JS to block copy and paste actions, so I am sure that those functions block …Google’s trust to their site’s also
So if you want Google to help you, don’t block Googlebot from accessing your CSS and JS files. These files allow Google to decently render your website and gives them an idea of what it looks like. If they don’t know what it looks like, they won’t trust it.