Well one second is quite a difference. I'd say you're on the right track!

    The fact that "DocumentComplete didn't fire" is your clue. It didn't 
download the complete web page! 

   Again, the only legitimate test is to save only a text file in order to 
compare the two. I'm sure you can find a web page that consists of nothing but 
text in order to test it if you really look. 

   If you want a tool to save web pages to disk, you should learn the various 
File Save As options in IE a little better. There's a "Save Complete Web page" 
option that saves all page related components in a sub folder. It still may 
have a problem resolving java applets or ads being called from Ad servers in 
most commercial web pages however. As I said, you need to make sure the HTML 
source code isn't referencing any urls! It has to be static HTML (like pure 
ASCII text).

   Obviously wouldn't even want to save ad pages, so for a generic saving of 
any web page, now you're dealing with on-the-fly editing that stuff out of the 
HTML code you save to disk. Tsk, Tsk, Tsk. The life of a codehead...

Dave

--- On Fri, 7/2/10, Bob Stanton <stan...@hero.com.au> wrote:

From: Bob Stanton <stan...@hero.com.au>
Subject: Re: [advanced_delphi] Re: TWebbrowser slow to load from disk
To: advanced_delphi@yahoogroups.com
Date: Friday, July 2, 2010, 6:47 PM







 



  


    
      
      
      And now I am totally lost !
I have tried and removed my Virus checker, but it made no difference. Same 
result 5sec from the net, 10sec from MHT, 25sec fgrom HTM.
Then I unplugged (literally) my Internet (cable) connection which resulted in 
the following:

The browser did not load from the MHT file at all.
The HTM file was loaded within a second, which is what I would expect rendering 
from a disk file, although the DocumentComplete did not fire.

The whole object of this excersize is to load web pages from disk. It seems 
that the method of saving and loading web pages from disk is at best a pretty 
crummy implementation.

By now I have tried all different method of saving web pages, directly from the 
net WITHOUT a web browser (as an MHT), which works OK but does not download the 
complete page (it seems the style sheets are missing).

I tried using IE explorer(V8) to save the page as an MHT file which works 
perfectly, but the load time from disk is prohibitively slow. 
Have I missed something, or would  I have to pursuing this project?

Bob




On Sat, Jul 3, 2010 at 10:31 AM, David Smith <djsmith_1998@ yahoo.com> wrote:
















 



  


    
      
      
      When you loaded from the saved files, it still probably had to resolve 
the server to load extraneous graphics and java applets, etc. When you test, 
you should make sure you're loading a static HTML file that doesn't have to 
resolve anything to the server. There shouldn't be any paths in the file 
pointing to the internet. It would be best to have access to a server so you 
can load a text file and load that from disk and the Internet. Otherwise you're 
comparing apples to oranges.


Dave

--- On Fri, 7/2/10, David Smith <djsmith_1998@ yahoo.com> wrote:


From: David Smith <djsmith_1998@ yahoo.com>
Subject: Re: [advanced_delphi] Re: TWebbrowser slow to load from disk
To: advanced_delphi@ yahoogroups. com

Date: Friday, July
 2, 2010, 5:15 PM







 



    
      
      
      
Hmmm... you must have worked for Microsoft tech support at one point, Dave.

Bob,

Try loading an HTML file, instead of an MHT file. 

the other Dave

--- On Fri, 7/2/10, David <burkl...@yahoo. com> wrote:


From: David <burkl...@yahoo. com>
Subject: [advanced_delphi] Re: TWebbrowser slow to load from disk
To: advanced_delphi@ yahoogroups. com
Date: Friday, July 2, 2010, 1:44 PM








 



    
      
      
      Have you run the tests with your anti-virus software disabled 
"temporarily" ? (some are better than others and not everyone has the same. 
food for thought.)



David



--- In advanced_delphi@ yahoogroups. com, Bob Stanton <stan...@...> wrote:

>

> I have tried, but the result is the same

> 

> Bob

> 

> On Fri, Jul 2, 2010 at 10:42 AM, David Smith <djsmith_1998@ ...> wrote:

> 

> >

> >

> > When you loaded from the Internet, the ActiveX component was already loaded

> > but when you loaded from disk, the ActiveX component had to be loaded first.

> > Try loading from disk, loading from the Internet, then loading from disk

> > again and see if it loads from disk faster the 2nd time.

> >

> > Dave

> >

> > --- On *Thu, 7/1/10, heromed <stan...@...>* wrote:

> >

> >

> > From: heromed <stan...@...>

> > Subject: [advanced_delphi] TWebbrowser slow to load from disk

> > To: advanced_delphi@ yahoogroups. com

> > Date: Thursday, July 1, 2010, 5:00 PM

> >

> >

> >

> >

> > The TWebbrowser AxtiveX component is twice as slow to load from disk, then

> > when it loads from the Internet.

> >

> > I have tested this with the cache emptied each time. The New York Times Web

> > Page loaded in 5 seconds from the Internet, when loaded from a saved MHT

> > file it took 10 seconds, and when loaded from a saved HTM file it took 23

> > seconds.

> >

> > Does anybody knows the reason for this, or how to improve the loading time

> > from disk ?

> >

> >

> >  

> >

>





    
     



 





      

    
     



 





      

    
     

    
    






  










    
     

    
    


 



  






      

Reply via email to