how to detect that download of the text of the page is completed?

  • Thread starter Thread starter Amir
  • Start date Start date
A

Amir

hello all,

i want to do some parsing of the html text of the page.
what i'm doing is waiting to "OnDocumentComplete" event and then doing the
job.
my problem is that for many sites/pages this event arrived a long time after
the text is already downloaded since the page has a lot of images which take
a long time to download.
is there a way to detect that the text of the page is downloaded before the
browser sends the "OnDocumentComplete" event?

thanks in advanced,
Amir.
 
Amir said:
hello all,

i want to do some parsing of the html text of the page.
what i'm doing is waiting to "OnDocumentComplete" event and then doing the
job.
my problem is that for many sites/pages this event arrived a long time after
the text is already downloaded since the page has a lot of images which take
a long time to download.
is there a way to detect that the text of the page is downloaded before the
browser sends the "OnDocumentComplete" event?

You could omit the large images, and make an onLoad function that (a)
does the parsing you want, and (b) inserts the omitted images.
 
i forgot to mentioned that i'm writing a BHO to Internet Explorer.
therefore i don't have control on the loading process.
i simply add a sink listener and get the browser event.
 
Back
Top