omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. champak

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    champak

    @champak

    0
    Reputation
    293
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    champak Unfollow Follow

    Latest posts made by champak

    • RE: Web page load times using ui.webview

      Hi Mikael

      Thanks much for your response - appreciate it!
      To answer your question, my requirements is a combination of 2 and 3 and to be more precise -
      I am trying to measure the load time of all page components of different pages (each page renders a different html site / content) across different browsers -
      For eg:
      Tab 1 - https://www.microsoft.com
      Tab 2 - https://www.msn.com
      Tab 3 - https://www.cnn.com
      Tab 4 - https://www.nytimes.com
      And I want to measure it across let's say 10 iterations with opening and closing the browser each time and making sure nothing is stored on the cache (clean on exit).

      Thanks for your help and appreciate any pointers on this.

      posted in Pythonista
      champak
      champak
    • Web page load times using ui.webview

      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

      posted in Pythonista
      champak
      champak