|
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.
|
|
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!
|
|
Rank: Newbie Groups: Member
Joined: 10/27/2022 Posts: 2
|
Yes, works perfective and first run is now practically instantaneous. Thank you!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great! Please feel free to let us know if there is anything else.
|
|