PDA

View Full Version : Load and render time?



djstava
24th February 2011, 11:03
Hi,
I use the QT4.7.1,and I want to know the accurate download(equal to load?) time,DOM tree and render tree building time of a web page?
As I know ,HTML and its subresource are loaded in parallel.I get the start time when emit the signal loadStarted() and end time when emit the signal loadFinished(bool).The time(end_time - start_time) here is the loading time including web page download time and DOM tree parse time?


connect(this, SIGNAL(loadStarted()),
this, SLOT(loadProgressBar()));
connect(this, SIGNAL(loadStarted()),
this, SLOT(loadLoadingIcon()));
connect(this, SIGNAL(loadProgress(int)),
this, SLOT(setProgress(int)));
connect(this, SIGNAL(loadFinished(bool)),
this, SLOT(loadFinished()));


Thanks.

wysota
27th February 2011, 09:00
So how is the result you obtain different from the one you want?