summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CyteKit/WebViewController.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 520faa2..4dc94ef 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -775,6 +775,9 @@ float CYScrollViewDecelerationRateNormal;
[preferences setJavaScriptCanOpenWindowsAutomatically:YES];
[preferences setOfflineWebApplicationCacheEnabled:YES];
+ if ([webview respondsToSelector:@selector(setShouldUpdateWhileOffscreen:)])
+ [webview setShouldUpdateWhileOffscreen:NO];
+
#if LogMessages
if ([document respondsToSelector:@selector(setAllowsMessaging:)])
[document setAllowsMessaging:YES];