Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser - Warm Start Options
RXDev
Posted: Thursday, October 27, 2022 12:03:34 PM
Rank: Newbie
Groups: Member

Joined: 10/27/2022
Posts: 2
In an WinForm application, when EO.WebBrowser is first called, it adds an addition 2-3 seconds on first start(cold start).
I was wondering if it is possible to call it in the background so the cold start of EO.Browser can happen before it is actually first used.
Is that possible using non-UI approach so the dlls get loaded in memory during just after the InitializeComponent(); on form startup?
Thank you.
eo_support
Posted: Friday, October 28, 2022 1:00:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

Yes. You can use WebView.PreLoad to "warm up" the browser engine:

Code: C#
EO.WebBrowser.WebView.Preload("about:blank");


You can call this method when your application starts. Then the browser engine can be ready later by the time you need to display a WebView.

Please let us know if this works for you.

Thanks!
RXDev
Posted: Friday, October 28, 2022 4:07:09 PM
Rank: Newbie
Groups: Member

Joined: 10/27/2022
Posts: 2
Yes, works perfective and first run is now practically instantaneous.
Thank you!
eo_support
Posted: Friday, October 28, 2022 4:13:46 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
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.