Document Conversion Strategies

When loading documents, memory can be saved by loading only those portions of the DOM that are required by a given script. For example, if you only want to log a list of section names in a document, you do not need to load the entire tree of nodes that lie beneath the sections.

These strategies are provided:

To load the entire document, use null for this parameter.