[webkit-help] Preload Scanner in WebKit

tomorrow chen tomorrow.cyz at gmail.com
Fri Feb 11 06:03:29 PST 2011

Yes.Your conclusion is right.
Because Javascript will modify the html structure,i.e,with document.write
method.So the html parser need to block when encounter external
javascript.But this block would reduce performance. So there's preload
For CSS or other external resources,they have no impact on html document.So
they will not influence the parser process.Thus no need for preload scanner.

Date: Thu, 10 Feb 2011 10:02:15 +0530
> From: ROSE-nd-ASH <rosen.dash at gmail.com>
> To: webkit-help at lists.webkit.org
> Subject: [webkit-help] Preload Scanner in WebKit
> Message-ID:
>        <AANLkTim+x-JVpTZvUDwv_TB6TKYPC22T0pSY8Xsu0k3r at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> Hi,
> While trying to understand preload scanning in WebKit code, I got to know
> that it only starts when HTMLTokenizer encounters JavaScript. Am I right in
> concluding so?
> If yes why it's not started if we encounters CSS files or other
> sub-resources first. Is there any particular reason for this??
> Thanks for any help.
> Regards,
> ROSE-nd-ASH,
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.webkit.org/pipermail/webkit-help/attachments/20110210/c333dc61/attachment-0001.html
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20110211/d4c15662/attachment.html>

More information about the webkit-help mailing list