c - MSHTML: Call a function when DOM is ready, but before javascript is evaluated -


i'm working on cross-platform webview library uses webkit (macos/linux) , mshtml (windows). trying give users callback allow them "inject" custom javascript code page once loaded (e.g. wrap console.log, pass initial data web page , on).

my current problem mshtml. if try evaluating javascript right after call navigate2 - errors, e.g. getidsofnames method on script object fails, understandable because it's early. try listen other events, such dispid_documentcomplete or dispid_navigatecomplete2, arrive late (e.g. after scripts on page executed, although before window.onload).

i wonder if there way notified when page loaded , dom parsed , scripts can evaluated, before evaluated?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -