Reputation: 11
I searched a lot but couldn't find the way to measure web page loading time with iOS. I want to develope an app which opens websites/URL in browser/Safari and gives the Page Load Time. Can you please help me with this.
I also found one of your answer iOS measuring web page loading time , but can please tell wether this will open URL in browser and calculate the Load tie
Upvotes: 0
Views: 654
Reputation: 3294
there is no clean nice completely accurate way of doing this.. try this link. I think it explains what you're looking for a little more thoroughly.
http://allseeing-i.com/ASIHTTPRequest/ASIWebPageRequest
per the author
ASIWebPageRequests do not currently support progress tracking for an entire request with its external resources. However, progress updates from external resource requests are passed on to your delegate, so with a bit of work it may be possible to implement this yourself.
per the delegate you may use these two events. I use them to impliment a simple spinner while loading then remove after completion.
- (void)webViewDidStartLoad:(UIWebView *)view
- (void)webViewDidFinishLoad:(UIWebView *)view
Upvotes: 1