Hi
I used the code posted in this thread https://forum.omz-software.com/topic/4435/open-multiple-web-browser-tabs/13 that discusses opening multiple tabs on safari which worked to open the tabs.
As an additional level I am interested in profiling the web page load times for each tab.
According to the Pythonista documentation on ui there is a delegate method that case be used to listen in on the outcome as mentioned here - http://omz-software.com/pythonista/docs/ios/ui.html#webview
Delegate methods:
class MyWebViewDelegate (object):
def webview_should_start_load(self, webview, url, nav_type):
return True
def webview_did_start_load(self, webview):
pass
def webview_did_finish_load(self, webview):
pass
def webview_did_fail_load(self, webview, error_code, error_msg):
pass
I guess my question is how do I attach a delegate action with each tab load and use the markers webview_did_start_load and webview_did_finish_load to compute the load times?
Any pointers will be appreciated.
Thanks
Suman