Resets navigation performance counters, use this method before loading a page.
Resets navigation performance counters, use this method before loading a page.
Visual Basic |
---|
Public Sub ClearPerformanceCounters() |
See GetPerformanceCounters for details.
Private Sub WebKitX1_OnBrowserReady() On Error Resume Next ' Clear performance counters WebKitX1.ClearPerformanceCounters ' Navigate WebKitX1.Open "https://www.mobilefx.com" If Err.Number <> 0 Then MsgBox Err.Description, vbCritical End If Err.Clear End Sub Private Sub WebKitX1_OnPageComplete(ByVal URL As String) ' Get Navigation Performance Counters (JSON or XML) CodeMax1.Text = WebKitX1.GetPerformanceCounters(False) End Sub