Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

CEF4Delphi: How to diasble loading SVG images?

Post Reply
vitaliy_zh
Posts: 8
Joined: Thu Apr 02, 2020 2:28 pm

CEF4Delphi: How to diasble loading SVG images?

Post by vitaliy_zh »

Hi, are there any possibilities to disable loading/showing SVG images in Chromium?
Thanks!
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: CEF4Delphi: How to diasble loading SVG images?

Post 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
vitaliy_zh
Posts: 8
Joined: Thu Apr 02, 2020 2:28 pm

Re: CEF4Delphi: How to diasble loading SVG images?

Post by vitaliy_zh »

@salvadordf
Thank You, I'll try it!
Post Reply