Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Track page render moment

Post Reply
dian
Posts: 21
Joined: Thu Aug 29, 2019 8:42 am

Track page render moment

Post by dian »

Page is rendered some time before document ready. How could we track the moment when page is rendered (but not yet "ready")?
User avatar
salvadordf
Posts: 4042
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Track page render moment

Post 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.
Post Reply