Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

We have a UIWebView in our app, displaying HTML data loaded from memory (not a file). We are experiencing some very strange bug/behavior. Some pages take very long time to render (1-2 minutes). We looked at the source of the pages, and it is indeed very busy with badly written CSS and HTML (not in our control). However, we noticed that if we set a webview to load a page, and then press the power button to shut the iPhone's screen, then immediately press the power button again, and go back to our app, the webview renders the page instantly.

Has anyone experienced this? Any ideas what's going on?

share|improve this question
Weird. You should probably file a bug to Apple. It looks like something on their end. – Josiah Dec 24 '12 at 19:22
Are you sure that all of the code that sends messages to the UIWebView (and every other UI object) runs on the main thread? – rob mayoff Dec 24 '12 at 19:24
Yes, all runs on the main thread. The code works for the most part, except for these specific pages. And once the screen is turned off and on, the "cork is popped" and the page is loaded instantly. – Leo Natan Dec 24 '12 at 19:39

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.