Answer the question
In order to leave comments, you need to log in
How to enable/disable image loading in CEF on the fly?
Good day to all.
I disable loading images when initializing the browser in this way:
//Настроки бразуера
BrowserSettings browserSettings = new BrowserSettings();
browserSettings.ImageLoading = CefState.Disabled;
// Initialize cef with the provided settings
Cef.Initialize(settings);
//Создаем браузер
CefWebBrowser = new ChromiumWebBrowser("https://yandex.ru")
{
Dock = DockStyle.Fill,
Size = new Size(600, 600),
BrowserSettings = browserSettings
};
browserSettings.ImageLoading = CefState.Enabled;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question