I'm downloading multiply htmls and save them locally as strings in an NSArray
.
Then I'm using 3 UIWebViews
to load the content. The user always sees one UIWebView
and 2 more UIWebViews
are loaded in the background using:
[_firstWebView loadHTMLString:nextHtml.body baseURL:nil];
When the user moves around between UIWebViews
I can still see slow loading times of 1-2 seconds if he moves 2 UIWebViews
at a time. I thought about going to 5 or even 7 UIWebViews
but I'm afraid it will impact the memory usage heavily.
Another thought I had was saving the content locally as NSData
and then load it with
[web loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:filePath]]];
But I'm not sure that will gain me any improvement or will it?
Another thought was that something in my app (animation on the screen) is slowing down the loading time so maybe I should loadHTMLString:nextHtml
on a different thread?
Thanks