Closed sonicdoe closed 10 years ago
great, i just hit this problem myself.
Thanks. Previously, people have been calling realInit() manually, but this is a much nicer solution. There's already a check in realInit that should prevent accidental multiple initialisation.
I had problems embedding Dalliance as I instantiated the browser after the load event has been fired. This commit adds a check if
document.readyState
is alreadycomplete
in which caserealInit()
is called right away. According to MDNdocument.readyState === 'complete'
is equal to the load event.