What's the exact timimg of OnLoadEnd?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

What's the exact timimg of OnLoadEnd?

Postby luodijia » Thu Jun 14, 2018 5:51 am

OnLoadEnd equals window.onload? Or the body.onload or document.ready? Thx
luodijia
Techie
 
Posts: 37
Joined: Mon Dec 22, 2014 11:55 am

Re: What's the exact timimg of OnLoadEnd?

Postby magreenblatt » Thu Jun 14, 2018 11:14 am

OnLoadEnd is called from DidFinishLoad in Chromium. The documentation on that method says:

// This method is invoked when the load is done, i.e. the spinner of the tab
// will stop spinning, and the onload event was dispatched.

When using OnLoadEnd in the browser process be aware that it is called asynchronously, so the timing is not exact.
magreenblatt
Site Admin
 
Posts: 12406
Joined: Fri May 29, 2009 6:57 pm

Re: What's the exact timimg of OnLoadEnd?

Postby luodijia » Fri Jun 15, 2018 4:06 am

the onload event means window.onload or body.onload?
luodijia
Techie
 
Posts: 37
Joined: Mon Dec 22, 2014 11:55 am

Re: What's the exact timimg of OnLoadEnd?

Postby magreenblatt » Fri Jun 15, 2018 11:02 am

luodijia wrote:the onload event means window.onload or body.onload?

I think window.onload and body.onload are the same.
magreenblatt
Site Admin
 
Posts: 12406
Joined: Fri May 29, 2009 6:57 pm

Re: What's the exact timimg of OnLoadEnd?

Postby luodijia » Tue Jun 19, 2018 2:31 am

Thanks!
luodijia
Techie
 
Posts: 37
Joined: Mon Dec 22, 2014 11:55 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 46 guests