Re: WebView blocks User Interface
Re: WebView blocks User Interface
- Subject: Re: WebView blocks User Interface
- From: Jens Alfke <email@hidden>
- Date: Thu, 05 Dec 2013 07:25:00 -0800
On Dec 5, 2013, at 3:47 AM, Gerriet M. Denkmann <email@hidden> wrote:
> How can I keep my user interface responsive?
You can have an explicit “Search” button, and wait till the button is pressed to initiate the search. Not all search UIs have to be search-as-you-type.
Also, I agree with Roland that 50 seconds is a suspiciously long time for the WebView to take to lay out 2MB of HTML, especially blocking the main thread. There’s probably something about your HTML that’s making the layout process very difficult. Ordinarily WebKit should be able to layout and render incrementally. Instruments may not help much with diagnosing this unless you can interpret all of the C++ method names inside of WebCore for clues about what it’s working on.
(You didn’t put all of your results into a <table>, did you? Huge tables are very bad for layout performance.)
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden