Changes 'documentload' event behavior.
Merge pull request #4617 from yurydelendik/documentload

Changes 'documentload' event behavior.