New options to listen the loading progress of the main document.
Merge pull request #3 from laurentj/dev

New options to listen the loading progress of the main document.