Slow Loading CEF files
Posted: Mon Mar 18, 2024 12:07 pm
We have an application "A" which we do not own and application "B" which we do own. "A" exists either on a local box or on a server somewhere. There is a shortcut set up to call "A".
From "A" we can call "B" with a shell execute. "B" has the embedded web browser and will be on a server somewhere not necessarily where "A" is located. The supporting CEF files can reside with "A" in the same folder but we cannot place those files with "A" because we do not own "A". So using the GlobalCEFApp path settings we pointed to the server where "B" resides and placed the supporting files in a folder there. This worked but it takes too long for these files to load.
We could probably place these files in a folder somewhere else where "A" resides but can we make it work? We did try the following settings and the files could not be found and I'm assuming "B" did not know how to look back to where "A" is located to find the files. Any ideas?
These settings did NOT work:
GlobalCEFApp.FrameworkDirPath := '%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\CEF';
GlobalCEFApp.ResourcesDirPath := '%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\CEF';
GlobalCEFApp.LocalesDirPath := '%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\CEF\locales';
GlobalCEFApp.EnableGPU := True; // Enable hardware acceleration
GlobalCEFApp.cache := '%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\CEF\cache';
From "A" we can call "B" with a shell execute. "B" has the embedded web browser and will be on a server somewhere not necessarily where "A" is located. The supporting CEF files can reside with "A" in the same folder but we cannot place those files with "A" because we do not own "A". So using the GlobalCEFApp path settings we pointed to the server where "B" resides and placed the supporting files in a folder there. This worked but it takes too long for these files to load.
We could probably place these files in a folder somewhere else where "A" resides but can we make it work? We did try the following settings and the files could not be found and I'm assuming "B" did not know how to look back to where "A" is located to find the files. Any ideas?
These settings did NOT work:
GlobalCEFApp.FrameworkDirPath := '%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\CEF';
GlobalCEFApp.ResourcesDirPath := '%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\CEF';
GlobalCEFApp.LocalesDirPath := '%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\CEF\locales';
GlobalCEFApp.EnableGPU := True; // Enable hardware acceleration
GlobalCEFApp.cache := '%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\CEF\cache';