Summary: | Loading locks up the browser on mobile devices | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | David Carson <dacarson> | ||||||
Component: | Page Loading | Assignee: | David Carson <dacarson> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | zalan | ||||||
Priority: | P2 | ||||||||
Version: | 420+ | ||||||||
Hardware: | Other | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
David Carson
2006-10-04 08:01:03 PDT
Created attachment 10900 [details]
patch
The tokenizer chunk size is quite large for low CPU devices, which results in the browser spending all it's time in the tokenizer. With a smaller chunk size, the tokenizer yields more often allowing the browser to respond to key events, etc. With the smaller chunk size, the tokenizer should not need to wait as before resuming tokenizing.
'#define MOBILE 0' makes '#ifdef MOBILE' true, use #if MOBILE instead. Created attachment 10901 [details]
Corrected patch after Zalan's comment
Changed #ifdef MOBILE to #if MOBILE
Comment on attachment 10901 [details]
Corrected patch after Zalan's comment
The only thing I'm concerned about here is that there's a comment that mentions 200ms in the non-mobile case, but for some reason the we are using 300ms for the mobile case.
r=me
|