Google unable to access CSS and JS files

Recently, I think many webmasters received an email regarding Google’s inability to access CSS and JS files. It is stated that the problem can be resolved if changes are made to the robots.txt files.

I changed the “disallow” expression found at the beginning of the CSS and JS inside the file to “allow” and submitted this to Google. However, I am still facing the same problem. I would be glad if someone knowledgeable about the subject could help in an explanatory way.

Thank you in advance to the friend(s) who will help.

I assume they were sent out in bulk. For WordPress sites, if the wp-includes directory is blocked in robots.txt, it needs to be unblocked. For other sites, you need to unblock the relevant directory where the JS files are located and wait. I suggest doing “Fetch as Google” etc., having the bots re-read the robots file, and disregarding the warnings. In other words, it might take a while for it to appear as fixed in the panel.

Yes, as you said, it took a while for it to show up in the panel. Friends who are experiencing the same problem and have a site structure other than WordPress should perform the operation as I mentioned and submit it to Google. The robots.txt will change in WM Tools, but do not test it immediately like I did; it will not detect it instantly. Because it can take 1-2 days for Google to register the change. Later, when you try using the “Fetch as Google” option, you will see that you get a positive result.

I had the same issue. Let’s see, I guess we’ll get a fix in time..
Thanks