Implemented event notifications on document loading.