code: function _onFrameNavigated(event, res) {
          // res = {frame}
          // Re-inject RemoteFunctions when navigating to a new page, but not if an iframe was loaded
          if (res.frame.parentId) {
              return;
          }
  
          _stopKeepAliveInterval();
  
          // inject RemoteFunctions
          var command = "window._LD=" + RemoteFunctions + "(" + JSON.stringify(LiveDevelopment.config) + "," + PreferencesManager.get("livedev.wsPort") + ");";
  
          Inspector.Runtime.evaluate(command, function onEvaluate(response) {
              if (response.error || response.wasThrown) {
                  _load.reject(response.error);
              } else {
                  _objectId = response.result.objectId;
                  _load.resolve();
  
                  _startKeepAliveInterval();
              }
          });
      }
docs: WebInspector Event: Page.frameNavigated