MAIDR Documentation - v3.75.0
    Preparing search index...

    Function classifyScriptOrigin

    • Decides whether a script URL is served by the page's own origin or by a separate host.

      Parameters

      • scriptUrl: string

        Absolute URL of the script that loaded maidr.js.

      • pageUrl: string

        Absolute URL of the page hosting the chart.

      Returns MaidrSourceKind

      local, cdn, or unknown when either URL cannot be parsed.