Page 1 of 1

CEF4Delphi: How to diasble loading SVG images?

Posted: Fri Feb 05, 2021 11:27 am
by vitaliy_zh
Hi, are there any possibilities to disable loading/showing SVG images in Chromium?
Thanks!

Re: CEF4Delphi: How to diasble loading SVG images?

Posted: Fri Feb 05, 2021 5:01 pm
by salvadordf
There are settings to stop downloading all images but I don't remember of any setting to stop SVG images in particular... but I could be wrong!

However, you can always filter any resource using the TChromium.OnBeforeResourceLoad or TChromium.OnResourceResponse events.

Read this for more information about those events :
https://magpcss.org/ceforum/apidocs3/projects/(default)/CefResourceRequestHandler.html

Re: CEF4Delphi: How to diasble loading SVG images?

Posted: Mon Feb 08, 2021 11:26 am
by vitaliy_zh
@salvadordf
Thank You, I'll try it!