On Jun 7, 12:42 am, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Is it possible to disable Gecko incremental reflow? Just have 1 reflow
> > when it receives the whole document?
>
> Not really.  For one thing, incremental reflows are needed as scripts in the
> page ask for layout information partway through the load.
>
> What you _can_ do is set the "content.notify.ontimer" preference to false, as
> well as setting "content.notify.backoffcount" to 0 and setting
> "content.interrupt.parsing" to false in an attempt to reduce the granularity 
> of
> the notifications.
>
> I'm not sure why you'd want to muck with this, though.
>
> -Boris

I notice there is a method called 'nsContentSink::StartLayout()', is
that method kick off the incremental reflow?
If that is the case, can i call that only after read the end of the
HTML document (get the '</html>' tag)?

My thinking is if I wait till the end of the document and just do a
reflow once (i.e. disable incremental relfow), i can speed up the
overall load time of the document (Yes, the initial display time of a
page will take longer) .

Thank you for any help.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to