CEF, cache and splash screen
Posted: Mon Sep 17, 2018 9:27 pm
Hello,
I try to remove Chromium's cache at application startup:
Since it can take a lot of time, I want to show the splash screen. But my splash screen is only shown after the cache removal is complete. What I'm doing wrong? This is part of my dpr file:
I try to remove Chromium's cache at application startup:
Code: Select all
GlobalCEFApp.DeleteCache:=true;
Code: Select all
GlobalCEFApp := TCefApplication.Create;
GlobalCEFApp.LocalesDirPath := 'locales';
GlobalCEFApp.EnableGPU := false;
GlobalCEFApp.cache := 'cache';
GlobalCEFApp.cookies := 'cookies';
GlobalCEFApp.UserDataPath := 'user';
GlobalCEFApp.DeleteCache:=true;
if GlobalCEFApp.StartMainProcess then
begin
application.Initialize;
Splash_Screen := TSplash_Screen.Create(nil);
Splash_Screen.Show;
Splash_Screen.Update;
application.CreateForm(TMiniBrowserFrm, MiniBrowserFrm);
Splash_Screen.Hide;
Splash_Screen.Free;
application.Run;
end;
GlobalCEFApp.Free;