In order to improve the (re)load time of Safari Web Inspector you have to modify /System/Library/PrivateFrameworks/WebInspectorUI.framework/Versions/A/Resources/Main.js
file.
Comment or remove the following three lines (TimelineManager.js
in the unminified source):
WebInspector.Frame.addEventListener(WebInspector.Frame.Event.ProvisionalLoadStarted, this._startAutoRecording, this);
WebInspector.Frame.addEventListener(WebInspector.Frame.Event.MainResourceDidChange, this._mainResourceDidChange, this);
WebInspector.Frame.addEventListener(WebInspector.Frame.Event.ResourceWasAdded, this._resourceWasAdded, this);
Reimplement WebInspector.dispatchMessageFromBackend
method (Main.js
in the unminified source) as follows: