Indexing & crawlability

JavaScript or CSS blocked by robots.txt

One of the 136 checks Lala SEO runs on every page of a site in a free audit.

How serious
Worth fixing. Weakens how Google reads or shows the page. Fix after the serious ones.
Based on
Google's own documentation

What is wrong

Your website is blocking Google's crawler from accessing some of your JavaScript or CSS files through your robots.txt file. This file is like a set of instructions you leave for search engine crawlers, telling them which parts of your site they can and cannot look at. When you block these resources, Google cannot read the code that makes your pages work or look right.

Why it costs you

Google needs to see your JavaScript and CSS to understand what your pages actually do and display to visitors. If the crawler cannot access these files, it may not properly index your page content, may fail to recognise interactive features, or may even assume your pages are broken. This means your pages could rank poorly or disappear from search results entirely, because Google cannot tell what they offer to visitors.

How to fix it

Open your robots.txt file and find any lines that block JavaScript or CSS files—these typically start with `Disallow:` and reference paths ending in `.js` or `.css`. Remove or comment out those lines so Google's crawler can access these resources. If you use a content management system like WordPress, check your SEO plugin settings to see if it has a robots.txt rule you can edit. Your JavaScript and CSS should be publicly crawlable so Google can fully understand your pages.

What the audit tests

  • Scripts and stylesheets the pages load are not blocked by robots.txt

Check your site

Run a free audit of up to 300 pages. No card needed.

Start a free audit

Or check a single address with the free tool.

Other indexing & crawlability checks

All 136 checks