lib/jquery.go.js
function(callback, nowait) {
    var self = this;
    var loadWait = function() {
      setTimeout(function() {
        self.waitForPage(callback, true);
      }, 100);
    };
    if (nowait) {
      if (loading) {
        loadWait();
      }
      else {
        getPage(function(page) {
          page.evaluate(function() {
            return jQuery.isReady;
          }, function(ready) {
            if (ready) {
              callback.call(self);
            }
            else {
              loadWait();
            }
          });
        });
      }
    }
    else {
      loadWait();
    }
  }
function(callback, nowait) {
    var self = this;
    var loadWait = function() {
      setTimeout(function() {
        self.waitForPage(callback, true);
      }, 100);
    };
    if (nowait) {
      if (loading) {
        loadWait();
      }
      else {
        getPage(function(page) {
          page.evaluate(function() {
            return jQuery.isReady;
          }, function(ready) {
            if (ready) {
              callback.call(self);
            }
            else {
              loadWait();
            }
          });
        });
      }
    }
    else {
      loadWait();
    }
  }
function ( callback , nowait ) { var self = this ; var loadWait = function ( ) { setTimeout ( function ( ) { self . waitForPage ( callback , true ) ; } , 100 ) ; } ; if ( nowait ) { if ( loading ) { loadWait ( ) ; } else { getPage ( function ( page ) { page . evaluate ( function ( ) { return jQuery . isReady ; } , function ( ready ) { if ( ready ) { callback . call ( self ) ; } else { loadWait ( ) ; } } ) ; } ) ; } } else { loadWait ( ) ; } }
Wait for the page to load.

@param {type} callback
@returns {undefined}
Wait for the page to load .