• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebView blocks User Interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >WebView blocks User Interface (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: WebView blocks User Interface
  • Next by Date: Re: WebView blocks User Interface
  • Previous by thread: Re: WebView blocks User Interface
  • Next by thread: Re: WebView blocks User Interface
  • Index(es):
    • Date
    • Thread