Broken JS and CSS Files Example
My cook sent the honey, the wagon, and the bear, and forgot only to send the pole.
The short answer
- What it is
- A broken asset is a JavaScript, CSS, or font file that answers with 400 or higher, or gives no response. A redirecting asset reaches its file only after at least one redirect.
- Why it matters
- A missing stylesheet can leave a page unstyled, and a missing script can remove content or features. Redirects add a round trip before the file can even start to load.
- How a crawler should report it
- Report the asset URL, its type, the status code or connection error, and the number of pages using it. For redirects, list each hop and the final URL.
- Live examples
/lab/broken-assets/(positive)/lab/redirecting-assets/(positive)/lab/broken-assets/near-miss/(near miss)/lab/redirecting-assets/near-miss/(near miss)

Scripts and Stylesheets That Fail or Take a Detour
A failed to load resource 404 message appears in the browser console when a file the page asked for is missing. Chrome adds the status to the line, so the cause is easy to read. Deployments are a common source. New builds change hashed file names, while old HTML in a cache still points to the old ones. Moved folders, deleted plugins, and wrong relative paths cause the rest.
The browser carries on with the page and skips what it could not get. If the missing file is the main stylesheet, the visitor sees plain text. If it is a script, menus may not open and content may never appear. Search engines render pages much like a browser does, so they can face the same gaps. When content depends on that script, Google may index a thinner page than you intended.
To detect these failures, gather each script, stylesheet, font, and preload URL on the page, then request them. Record the first status and every redirect. The Network panel in the developer tools shows the same data for a single page. Watch for soft failures as well. Some servers return an HTML error page with status 200 for a missing file. The browser will then refuse to run it or apply it.
For a missing file, restore it or correct the path in the template. Keep old hashed files online for a while after each deployment, so cached pages keep working. For a redirect, update the reference to point straight at the final URL. Redirects on assets are rarely needed, and each one adds delay. Add a check to your release process, so a build with a dead reference fails before it reaches visitors.