lib/client/scene.js
function onReadystatechange(e) {

	if (!(e instanceof Event)) {
		throw new TypeError('Invalid event was given');
	}

	if (document.readyState == 'interactive') {
		makeReady.call(this);
	}

	if (document.readyState == 'complete') {
		makeLoaded.call(this);
	}
}
function onReadystatechange(e) {

	if (!(e instanceof Event)) {
		throw new TypeError('Invalid event was given');
	}

	if (document.readyState == 'interactive') {
		makeReady.call(this);
	}

	if (document.readyState == 'complete') {
		makeLoaded.call(this);
	}
}
function onReadystatechange ( e ) { if ( ! ( e instanceof Event ) ) { throw new TypeError ( 'Invalid event was given' ) ; } if ( document . readyState == 'interactive' ) { makeReady . call ( this ) ; } if ( document . readyState == 'complete' ) { makeLoaded . call ( this ) ; } }
Listen to the readystate changes of the `document`

@author   Jelle De Loecker   <jelle@develry.be>
@since    1.0.0
@version  1.0.0
Listen to the readystate changes of the document