FIRST QUESTION: webpage loaded with 2 seconds delay, how to avoid?
I notice that when I call LoadUrl, the first time I open a URL the embedded chromium takes around 2-3 seconds to load the page, if the page is opened from Google Chrome this delay is not noticeable.
Is it possible to avoid this delay? Since in my application I attach a chromium tabpage at runtime and then as a user clicks on the tab, the URL is loaded and the delay is noticed, resulting in a negative user experience.
I attach a sample (V3 of a sample i previously sent you) for other questions.
To be able to run the sample please open uCEFLoader.pas and set the paths to the installed DCEF version in the following three lines of code:
Code: Select all
GlobalCEFApp.FrameworkDirPath := '..\dcef';
GlobalCEFApp.ResourcesDirPath := '..\..\..\dcef';
GlobalCEFApp.LocalesDirPath := '..\..\..\dcef\locales';
1) pass the login by clicking on login
2) as the main form appears click on the Brower tab (attached at runtime): briskbard.com is immediately loaded, notice that it takes around 2 seconds to load,while it should be istantanious, why?
Is there a way to avoid this delay or is it an intrinsic DCEF behavior?
SECOND QUESTION: how to force the restart of a browser session?
Is there a way to reset a browser session? When DCEF is used in a Delphi app, all the embedded chromium instances refer to the same browser session.
I made a simple webapp that shows the current time and a session ID (initialized at every browser session start).
This app is published at https://qvm-dev.my.qualibus.it/TimeInSession/TimeInSession.htm
and the Delphi app calls it when clicking on Session Time button inside the Browser tab.
How to start a new session? I would like that every time i click on the Session Time button a new session of the TimeInSession app is started
I hope you can help me with both my questions.
Thanks a lot.
Best regards.