Welcome Guest Search | Active Topics | Sign In | Register

webbrowser control webview slow to load. Preload possible Options
darren
Posted: Tuesday, April 14, 2015 4:35:30 AM
Rank: Newbie
Groups: Member

Joined: 3/23/2015
Posts: 8
Hi
I have just purchased the EO.WebBrowser for use in C#, .NET, VS2013, WinForm project.

The main reason was that the support for correctly dispaying websites and HTML5 in particular seemed better than the standard WinForm webBrowser.

My application is a HMI with a big tab control to switch between pages/views.

The EO WebBrowser is very slow compared to the standard (free!) winform webbrowser. WinForm browser is up instantly as soon as I open a tab with the control whereas the EO control takes about 3 second to load. This is just a one EO webcontrol, one EO webview and I have specified a cache for it.

Since the performance is so poor I hope there is a way to preload websites as soon as the app starts?

Otherwise this control is not usable for us - 3 second delay for a control system component will no pass quality controls or customers expectation.

I very much hope there is some way around this as otherwise the control seems great and being embedded in a single dll means our system is not dependant on the browser installed on the client OS.

Best regards
Darren
eo_support
Posted: Tuesday, April 14, 2015 3:01:49 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi Darren,

You can try the multi-DLL builds and see if it works better for you:

http://www.essentialobjects.com/doc/6/install/multi_dll_build.aspx

If that still does not help, you can pre-load the browser engine by creating a hidden WebView through the ThreadRunner class. It will be something like this:

Code: C#
ThreadRunner threadRunner = new ThreadRunner();
WebView webView = threadRunner.CreateWebView();

This will initialize the browser engine.

Please remember to destroy the above WebView when your application close down:

Code: C#
webView.Destroy();

Otherwise this additional WebView may prevent your application from closing down properly.

Hope this helps. Please feel free to let us know if you still have any questions.

Thanks!


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.