Documentation
    Preparing search index...

    Function nappletMarkupHasResourceHint

    • Report whether verified napplet HTML declares a dns-prefetch, preconnect or prerender link. Parses with the host's DOMParser when present (scripting is off there, so <noscript> content counts too), else applies a conservative lexical check.

      Parameters

      • html: string

        Already-verified napplet artifact HTML

      Returns boolean

      true if a hint link is present and the bytes must be rejected

      if (nappletMarkupHasResourceHint(verifiedHtml)) throw new Error('napplet declares a resource hint');