Optional
Callback for progress handling.
Callback for document validation. Will be called in the beginning of the load process to allow custom document validation. The promise should be rejected if the document is not valid. In this case the loading will be aborted.
Callback for progress handling.