Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

WinForms - WebBrowser - Avoid slow start performance Options
Life Science Development
Posted: Tuesday, October 13, 2020 4:04:08 AM
Rank: Newbie
Groups: Member

Joined: 4/1/2020
Posts: 4
Hallo support,

is it possible to avoid the slow start performance?

When we initialize the WebBrowser Control the first time it needs nearly 1.9 seconds until the control is displayed.
When we initialize the WebBrowser Control in a Thread (the control is not visible) nothing changes.
When we initialize the WebBrowser Control in a Thread (the control is visible) the performance is better.

Is there an easy way to avoid the slow start performance (without make the control visible)?


Thanks for your support
Best regards
Life Science Development
eo_support
Posted: Tuesday, October 13, 2020 9:03:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 22,491
Hi,

You can use a ThreadRunner to create the WebView in the background:

https://www.essentialobjects.com/doc/webbrowser/start/webview_no_ui.aspx

The WebView you created will not be used --- it's just that creating this WebView would initialize the browser engine, which is what takes time. So as long as this WebView has been created, the next time when you create the real WebView to use it would be a lot faster.

Thanks!
Life Science Development
Posted: Wednesday, October 14, 2020 7:37:34 AM
Rank: Newbie
Groups: Member

Joined: 4/1/2020
Posts: 4
Hi eo_support,

thank you for your prompt reply.
That is what we searched for.

Best regards
Life Science Development
eo_support
Posted: Thursday, October 15, 2020 2:36:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 22,491
Great! Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.