Delay in loading page when there is disconnection to server

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Delay in loading page when there is disconnection to server

Postby jchino007 » Mon Apr 15, 2019 10:59 pm

Hi,

I've been wondering if you have any idea on this performance issue. I am using ChromiumBrowser.Address to set the URL page to load.
If the said URL server is up and working, the page just loads smoothly. But on the other scenario wherein the URL server is down, it took a minute or more to load and display the Customized Error Page I created.

Does it have something to do with the SERVER is DOWN handling event of CEF that makes this seem to delay? or
Does it have something to do on the ChromiumWebBrowser.LoadError Event when an HTTP request failed to response?

Need your thoughts on this guys!

Thanks!

Additional Info:
CefSharp.wpf Version Used: 71.0.0
Last edited by jchino007 on Thu Apr 25, 2019 2:49 am, edited 1 time in total.
jchino007
Newbie
 
Posts: 5
Joined: Mon Apr 15, 2019 10:48 pm

Re: Delay in loading page when there is disconnection to ser

Postby Czarek » Wed Apr 17, 2019 9:54 am

How does it behave in Google Chrome at the same version? Anything interesting in logs?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Delay in loading page when there is disconnection to ser

Postby jchino007 » Thu Apr 25, 2019 3:45 am

Czarek wrote:How does it behave in Google Chrome at the same version? Anything interesting in logs?

Didn't saw anything interesting but these messages:
[0709/085844.623:WARNING:dns_config_service_win.cc(669)] Failed to read DnsConfig.
[0709/085849.628:WARNING:dns_config_service_win.cc(669)] Failed to read DnsConfig.
[0709/085854.633:WARNING:dns_config_service_win.cc(669)] Failed to read DnsConfig.
[0709/085859.639:WARNING:dns_config_service_win.cc(669)] Failed to read DnsConfig.
[0709/085904.645:WARNING:dns_config_service_win.cc(669)] Failed to read DnsConfig.

I tried to read the release notes for CefSharp V 71.0.0 but didn't found the equivalent version of Chrome for this. Do you have idea on where to check the right version of Chrome for Cefsharp V. 71.0.0?
jchino007
Newbie
 
Posts: 5
Joined: Mon Apr 15, 2019 10:48 pm

Re: Delay in loading page when there is disconnection to ser

Postby Czarek » Thu Apr 25, 2019 4:43 am

You can check user agent in javascript.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Delay in loading page when there is disconnection to ser

Postby jchino007 » Mon Apr 29, 2019 12:34 am

Additional questions:
Is there a standard time in terms of seconds, to recover or reload the URL page after a LoadError Event was encountered?
If there is, is there a way we can revise the timeout of the retry/reload?
jchino007
Newbie
 
Posts: 5
Joined: Mon Apr 15, 2019 10:48 pm

Re: Delay in loading page when there is disconnection to ser

Postby Czarek » Mon Apr 29, 2019 1:29 am

I suggest you check the behavior in Google Chrome / Firefox. You can use CefPostDelayedTask function to execute the reload with delay.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 28 guests

cron