Page 1 of 1
Track page render moment
Posted: Fri Sep 11, 2020 12:36 pm
by dian
Page is rendered some time before document ready. How could we track the moment when page is rendered (but not yet "ready")?
Re: Track page render moment
Posted: Sat Sep 12, 2020 9:38 am
by salvadordf
Hi,
I don't recall any event that is triggered at that moment but perhaps this will be enough for you.
Try the TChromium.OnLoadEnd and check that the frame.IsMain to know when the main document has finished loading.
Using the TChromium.OnBeforeResourceLoad could be useful to know when Chromium is trying to download the first resource after the main document. That would tell you when Chromium has parsed the document up to a point when it can start downloading other resources like images, scripts, etc.