UIWebView suppressesIncrementalRendering
@property(nonatomic) BOOL suppressesIncrementalRendering
Discussion of [UIWebView suppressesIncrementalRendering]
When set to YES, the web view does not attempt to render incoming content as it arrives. Instead, the view’s current contents remain in place until all of the new content has been received, at which point the new content is rendered. This property does not affect the rendering of content retrieved after a frame finishes loading.
The value of this property is NO by default.
UIWebView suppressesIncrementalRendering example.
UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.frame];
NSString *urlAddress = @"https://mysite.com/";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
[webView setSuppressesIncrementalRendering:YES];
[self.view addSubview:webView];
[super viewDidLoad];
NSString *urlAddress = @"https://mysite.com/";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
[webView setSuppressesIncrementalRendering:YES];
[self.view addSubview:webView];
[super viewDidLoad];