Page 1 of 1

Hide images ?

Posted: Thu Aug 15, 2019 11:24 pm
by thefunkyjoint
Hello,

I already did this in the past but can't remember anymore : how can i disable image loading when loading a page ?

Thanks !

Re: Hide images ?

Posted: Fri Aug 16, 2019 7:10 am
by salvadordf
Hi,

You can set GlobalCEFApp.DisableImageLoading to True before the GlobalCEFApp.StartMainProcess call in the DPR file to disable images for all the app lifetime.

If you need to disable them in one browser set TChromium.Options.ImageLoading to STATE_DISABLED before calling TChromium.CreateBrowser. This setting is in use for all the lifetime of this browser.

Re: Hide images ?

Posted: Fri Aug 16, 2019 11:25 am
by thefunkyjoint
Great, thank you ! :D