squirrelscan
GitHub

Reliability audit rules: broken scripts, fonts and forms

Audit rules for what fails to load: scripts, stylesheets and fonts that return errors, broken links, and forms whose fields or actions lose submissions.

Reliability rules check that what a page asks the browser to load actually loads, that a form’s submission reaches a handler, and that the links on a page lead somewhere. They read the scripts, stylesheets and fonts the crawl already fetched, so a bundle that returns 404 after a deploy shows up even when the HTML that references it is a 200. The category sits in the Performance score group, since a page whose main script never loads is slow to become usable, and the rules need no browser render.

Run only these rules

squirrel audit https://example.com --rule-include reliability

Reliability and Performance make up the Performance score group. Run both with --rule-include perf,reliability.

Where to start

These carry the highest severity and weight in the category.

Rules

RuleWhat it flagsSeverityScope
Broken anchor links: #fragments that point at nothingA link to #pricing whose target id is gone still loads, and the reader lands at the top of the page. squirrel checks every in-page anchor against the element it names.warningSite-wide
Broken external links: link rot on pages you cannot fixExternal links die without warning when the other site changes. squirrel checks each one and separates dead links from unverifiable ones.warningSite-wide
Broken internal links: 404s inside your own siteAn internal link to a page that returns 404 or 500 is a dead end you control. squirrel cross-references every internal link against the crawl.errorSite-wide
Broken scripts, stylesheets and fonts: files that do not loadA page whose script or stylesheet returns 404 or 500 looks fine to a crawler but renders unstyled or never runs its interactive parts. squirrel checks every script, stylesheet and font the crawl fetched.errorSite-wide
Forms that lose submissions: unnamed fields and dead actionsA form can look perfect and still drop every submission. squirrel checks that each field has a name the browser sends, and that each form action answers.errorSite-wide

Key terms

  • Broken link: A link whose target answers with an error, does not resolve, or is malformed.
  • Fragment link: A link to an id within a page (#section); it is broken when no element on the target page carries that id.
  • HTTP status code: The three-digit code a server returns with every response; 2xx success, 3xx redirect, 4xx client error, 5xx server error.

Performance covers how fast the same resources load. Images checks image sources, and Links checks link targets that return errors.

Learn more

The three broken link rules keep their links/ ids, so their pages live under Links and links/* selects them. They are Reliability rules in every report. A pattern matches on the id, not the category: to turn off everything Reliability scores, list them next to reliability/*.

Disable all Reliability rules

[rules]
disable = ["reliability/*", "links/broken-links", "links/broken-external-links", "links/broken-anchors"]

Type to search…

↑↓ navigate↵ openesc close