OnLoadingStateChange property
Posted: Sun Dec 04, 2022 9:01 am
Good day salvadordf
to determine if the page has finished loading, I can use
OnLoadingStateChange is guaranteed to detect when the page is finished loading, but on some sites it takes very long time. visually the page is already loaded, manually I can work with it, but isLoading is still FALSE, so the analysis unit is idle.
If it is possible, please point out the way to correctly determine the end of page loading. maybe there is a time interval setting, somewhere in GlobalCEFApp or somewhere else.
Thank you.
to determine if the page has finished loading, I can use
Code: Select all
procedure TMain.crmLoadingStateChange(Sender: TObject; const browser: ICefBrowser;
isLoading, canGoBack, canGoForward: Boolean);
begin
if isLoading then
begin
Label3.Caption := 'Loading...';
end
else
begin
Label3.Caption := 'Finished load';
gFinished := True;
end;
end;
If it is possible, please point out the way to correctly determine the end of page loading. maybe there is a time interval setting, somewhere in GlobalCEFApp or somewhere else.
Thank you.