onInitialized
Introduced: PhantomJS 1.3
This callback is invoked after the web page is created but before a URL is loaded. The callback may be used to change global objects.
Examples
var webPage = require('webpage');
var page = webPage.create();
page.onInitialized = function() {
page.evaluate(function() {
document.addEventListener('DOMContentLoaded', function() {
console.log('DOM content has loaded.');
}, false);
});
};