Access to DOM before rendering с++

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.

Access to DOM before rendering с++

Postby arkannsk » Tue Sep 28, 2021 1:01 pm

I need to change BODY display param in DOM before page start painting elements.
My plan is:
1. (Need only white screen) Do before rendering something like document.getElementsByTagName('body')[0].style = 'display: none;'
2. in ::OnLoadEnd remove/add some elements
3. in the end of ::OnLoadEnd document.getElementsByTagName('body')[0].style = 'display: block;'

P.S. I don't have too much experience in C++. If possible, then in more detail
arkannsk
Newbie
 
Posts: 1
Joined: Tue Sep 28, 2021 12:09 pm

Re: Access to DOM before rendering с++

Postby HarmlessDave » Tue Sep 28, 2021 3:33 pm

It might make sense to set up a response filter and alter the content before it reaches the renderer.

viewtopic.php?f=6&t=16883
HarmlessDave
Expert
 
Posts: 370
Joined: Fri Jul 11, 2014 2:02 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 42 guests