With these questions, you can use JavaScript to change the location of the UIWebView window immediately after the DOM has finished loading (e.g. jQuery):
$(document).ready(function(){
location.href = http:
})
Then use the UIWebView delegate method to select this link and remove the loading screen:
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
NSURL *url = request.URL;
if([[url absoluteString] isEqualToString:@"http://removeLoadingScreen"]){
}
}
Images and .gif are not yet loaded, but the rest of the page will be. The only drawback is that the space for images may be blocked or not yet blocked, so the text content may jump down the page after the images appear.
Erich source
share