Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

why multiple "StartDocumentLoad" for one single web page?

14 views
Skip to first unread message

Yuhao

unread,
Jan 2, 2012, 3:20:34 PM1/2/12
to
Hi All,

I am not exactly sure if this post fits in this group. I assume
StartDocumentLoad is sort of the start function of loading a page. But
I saw this function got called multiple times when loading one single
web page. The more complex the web site is, the more time it gets
called. I am just wondering if it is true that this function is not
for the entire page, but each separate component (or region) in that
page needs its own StartDocumentLoad?

Thanks,
Yuhao

Robert O'Callahan

unread,
Jan 2, 2012, 7:57:08 PM1/2/12
to Yuhao, dev-tec...@lists.mozilla.org
Each <iframe> has its own document and therefore its own StartDocumentLoad.

Rob
--
"If we claim to be without sin, we deceive ourselves and the truth is not
in us. If we confess our sins, he is faithful and just and will forgive us
our sins and purify us from all unrighteousness. If we claim we have not
sinned, we make him out to be a liar and his word is not in us." [1 John
1:8-10]

Yuhao

unread,
Feb 16, 2012, 11:11:12 AM2/16/12
to
Hi Rob,

Thanks for replying. But even for a blank page, there are a few
StartDocumentLoad involved. Why so? Also, I tested google.com, whose
source HTML code only shows one single <iframe>, but still has
multiple StartDocumentLoads got called. Why so? Thanks!

On Jan 2, 6:57 pm, "Robert O'Callahan" <rob...@ocallahan.org> wrote:
0 new messages