/src/main/java/org/htmlunit/html/HtmlPage.java
if(hasFeature(org.htmlunit.BrowserVersionFeatures.FOCUS_BODY_ELEMENT_AT_START)) {  setElementWithFocus(getBody());}; setReadyState(org.htmlunit.html.READY_STATE_COMPLETE); getDocumentElement().setReadyState(org.htmlunit.html.READY_STATE_COMPLETE); executeEventHandlersIfNeeded(Event.TYPE_READY_STATE_CHANGE);
if ( !isAboutBlank ) { if ( hasFeature ( FOCUS_BODY_ELEMENT_AT_START ) ) { setElementWithFocus ( getBody ( ) ) ; }
getDocumentElement().setReadyState(READY_STATE_INTERACTIVE); executeEventHandlersIfNeeded(Event.TYPE_READY_STATE_CHANGE); } executeDeferredScriptsIfNeeded(); executeEventHandlersIfNeeded(Event.TYPE_DOM_DOCUMENT_LOADED); loadFrames(); <extra_id_0> setReadyState(READY_STATE_COMPLETE); getDocumentElement().setReadyState(READY_STATE_COMPLETE); executeEventHandlersIfNeeded(Event.TYPE_READY_STATE_CHANGE); } boolean isFrameWindow = enclosingWindow instanceof FrameWindow; boolean isFirstPageInFrameWindow = false;