Skip to content

LoadOptions

Copy as Markdown

The options of loadFile (and of mountFile, which adds its own).

readonly optional integrity?: string

The file’s hash, as in a <script integrity>: sha256-<base64> of the bytes as downloaded (the gzipped file), checked before anything reads them; spaces around it are allowed. A mismatch is an integrity error. It needs a secure context (https or localhost), and the file’s bytes (not a RupaFile already parsed).