Readonly originalThe Document that was passed to this FreezeDryer to be freeze-dried.
Readonly resultThe clone of the original document. After completing run, this is the freeze-dried
result. It can also be accessed before or while running, to already obtain a partial
result if needed.
Readonly configThe configuration of this FreezeDryer (based on the passed options).
Document to be freeze-dried. Remains unmodified.
Options to customise freezeDry’s behaviour.
Run the freeze-drying process.
Starts the process of recursively crawling and drying subresources of result, then finalises the snapshot itself.
The FreezeDryer itself.
Signals whether freeze-drying has been aborted.
Aborting can happen in several ways:
FreezeDryer’s abort method was called.timeout given in options has been reached.signal given in options was triggered.
Freeze-dries an HTML Document.
For most use cases, use the freezeDry function, a convenience wrapper around this class.
Use this class instead if you need more control; for example to access the incomplete result before
freezeDryfinishes, or to obtain it as aDocumentorBlobrather than a string.Example
This is roughly what running
freezeDry(document, options)does: