[webkit-reviews] review requested: [Bug 27612] handling scripts can block UI : [Attachment 33349] the patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 23 11:56:25 PDT 2009


Yong Li <yong.li at torchmobile.com> has asked  for review:
Bug 27612: handling scripts can block UI
https://bugs.webkit.org/show_bug.cgi?id=27612

Attachment 33349: the patch
https://bugs.webkit.org/attachment.cgi?id=33349&action=review

------- Additional Comments from Yong Li <yong.li at torchmobile.com>

CachedScript calls client->notifyFinished() immediately if the script is
already in cache, and it also does that when all resource data comes.

In the case that the user goes back/forward to a page that contains many JS
files, HMTLTokenizer will decode and execute those JS files at one time. This
can affect UI responsiveness.

The attached patch contains code to delay sending notifications to cliensts of
CachedScript by timer.

It helps improving responsiveness on WinMob

(Probably this is not a problem at all for desktop browsers?)


More information about the webkit-reviews mailing list