Page 1 of 1

Load on 100%

Posted: Wed Aug 28, 2019 11:00 am
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;

Re: Load on 100%

Posted: Wed Aug 28, 2019 12:02 pm
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.