Files Tab

Version: 2.0

Files Tab

Open the Files tab. Click Add for each CSS or JavaScript file.

  • Enabled (default: Yes): turn this row on or off without deleting it.
  • File Type (default: CSS): CSS or JavaScript.
  • File Path or URL (required): a site-relative path such as templates/cassiopeia/css/custom.css, or a full https:// CDN URL. Protocol-relative //cdn... URLs are allowed. Paths with .., null bytes, or schemes like javascript: / data: are rejected.
  • Script Loading (JavaScript only, default: Normal):
    • Normal: register the script with no defer/async
    • Defer: run after HTML parsing finishes (best when order matters)
    • Async: download in parallel and run when ready (order may change)
  • ES Module (type=module) (JavaScript only, default: No): sets type="module".
  • Nomodule Fallback (JavaScript only, default: No): adds the nomodule attribute for older browsers.
  • Crossorigin (JavaScript only, default: None): None, anonymous, or use-credentials. Often used with SRI on CDN scripts.
  • Integrity (SRI) (JavaScript only): optional hash such as sha384-.... Invalid hashes are ignored.
  • CSS Media (CSS only, default: All): All, Screen, Print, or Custom query.
  • Custom Media Query (when Media is Custom): example (max-width: 768px).
  • Load Priority (default: 0): higher numbers are registered first.

Tip: start with one local CSS file and Cache Busting set to Auto, then add scripts after the styles work.