Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Load on 100%

Post Reply
X11
Posts: 49
Joined: Thu Jul 25, 2019 10:15 am

Load on 100%

Post by X11 »

Main frame is not loaded, but progress in Chromium1LoadingProgressChange shows 100%.

prn scr: http://prntscr.com/oylk12

Code: Select all

procedure TForm1.Chromium1LoadingProgressChange(Sender: TObject;
  const browser: ICefBrowser; const progress: Double);
begin
  StatusBar1.Panels[0].Text := 'Loading... ' + FloatToStrF(progress * 100, ffFixed, 4, 1) + '%';
end;
User avatar
salvadordf
Posts: 4565
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Load on 100%

Post by salvadordf »

Hi,

The progress information comes from CEF/Chromium and CEF4Delphi only shows what's available.

These are the code comments for that event in the original CEF source code :
https://bitbucket.org/chromiumembedded/ ... #lines-136

Code: Select all

  ///
  // Called when the overall page loading progress has changed. |progress|
  // ranges from 0.0 to 1.0.
  ///
Maybe that web page was reloading some child frames or perhaps the progress parameter only considers the main frame.
Post Reply