history.js
function onLoad(noScroll) {
    // Get rid of the events popstate when the first loading a document in the webkit browsers
    setTimeout(function() {
      // hang up the event handler for the built-in popstate event in the browser
      addEvent('popstate', function(e) {
        // set the current url, that suppress the creation of the popstate event by changing the hash
        checkUrlForPopState = windowLocation.href;
        // for Safari browser in OS Windows not implemented 'state' object in 'History' interface
        // and not implemented in old HTML4 browsers
        if (!isSupportStateObjectInHistory) {
          e = redefineProperty(e, 'state', {get: function() {
            return historyObject.state;
          }});
        }
        // send events to be processed
        dispatchEvent(e);
      }, false);
    }, 0);
    // for non-HTML5 browsers
    if (!isSupportHistoryAPI && noScroll !== true && "location" in historyObject) {
      // scroll window to anchor element
      scrollToAnchorId(locationObject.hash);
      // fire initial state for non-HTML5 browser after load page
      fireInitialState();
    }
  }
function onLoad(noScroll) {
    // Get rid of the events popstate when the first loading a document in the webkit browsers
    setTimeout(function() {
      // hang up the event handler for the built-in popstate event in the browser
      addEvent('popstate', function(e) {
        // set the current url, that suppress the creation of the popstate event by changing the hash
        checkUrlForPopState = windowLocation.href;
        // for Safari browser in OS Windows not implemented 'state' object in 'History' interface
        // and not implemented in old HTML4 browsers
        if (!isSupportStateObjectInHistory) {
          e = redefineProperty(e, 'state', {get: function() {
            return historyObject.state;
          }});
        }
        // send events to be processed
        dispatchEvent(e);
      }, false);
    }, 0);
    // for non-HTML5 browsers
    if (!isSupportHistoryAPI && noScroll !== true && "location" in historyObject) {
      // scroll window to anchor element
      scrollToAnchorId(locationObject.hash);
      // fire initial state for non-HTML5 browser after load page
      fireInitialState();
    }
  }
function onLoad ( noScroll ) { // Get rid of the events popstate when the first loading a document in the webkit browsers setTimeout ( function ( ) { // hang up the event handler for the built-in popstate event in the browser addEvent ( 'popstate' , function ( e ) { // set the current url, that suppress the creation of the popstate event by changing the hash checkUrlForPopState = windowLocation . href ; // for Safari browser in OS Windows not implemented 'state' object in 'History' interface // and not implemented in old HTML4 browsers if ( ! isSupportStateObjectInHistory ) { e = redefineProperty ( e , 'state' , { get : function ( ) { return historyObject . state ; } } ) ; } // send events to be processed dispatchEvent ( e ) ; } , false ) ; } , 0 ) ; // for non-HTML5 browsers if ( ! isSupportHistoryAPI && noScroll !== true && "location" in historyObject ) { // scroll window to anchor element scrollToAnchorId ( locationObject . hash ) ; // fire initial state for non-HTML5 browser after load page fireInitialState ( ) ; } }
The event handler is fully loaded document

@param {*} [noScroll]
@return void
The event handler is fully loaded document