Skip to main content
Scoping decides where a script runs. Cairn evaluates scope rules at load time, so the loader only ships the JS and CSS each page actually needs.

Scope levels

  • Site — runs everywhere on a site.
  • Page — runs on a specific Webflow page only.
  • Template — runs on every page that uses a Webflow CMS template.
  • Path glob"/products/*", "/blog/**", etc.

Combining rules

Multiple scope rules are OR’d together. A script with a Site-level rule and a "/checkout" page-level rule will run on every page of that site, including /checkout. To exclude pages, use negative globs: "!/admin/*".