CefLoadHandler OnLoadEnd timing

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.

CefLoadHandler OnLoadEnd timing

Postby arkan » Sun Aug 24, 2014 2:02 am

Hi,
I am using CEF 1750.1738 build on windows. I am loading a webpage which has several <img> element in the HTML DOM. So, my question is that when CefLoadHandler::OnLoadEnd is called? Just after the HTML/JS is loaded or when all the images have been received and displayed?
arkan
Techie
 
Posts: 10
Joined: Wed May 21, 2014 12:51 pm

Re: CefLoadHandler OnLoadEnd timing

Postby Czarek » Sun Aug 24, 2014 2:16 am

It waits for images to load (an equivalent of window.onload). You may also try OnLoadingStateChange or attach a DOMContentLoaded event in OnLoadStart using ExecuteJavascript and communicate back with C++ using javascript bindings.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 63 guests

cron