From: Jay Freeman (saurik) Date: Mon, 7 Mar 2011 22:05:47 +0000 (-0800) Subject: Do not update webviews that are not rendered. X-Git-Tag: v1.1.0%b1~14 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/18169cfd9bd3118f4c7c3b214482c912509288be?ds=inline Do not update webviews that are not rendered. --- diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index 520faa25..4dc94ef6 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];