简体   繁体   中英

Is there a way to “load” the browser but not display anything? CefSharp

I'm trying to create a program that will basically include several browser instances (in order not to share cache) and on each browser instance, I need to open a webpage and stay on it.

However, as you might assume, amount of RAM that it would consume is huge, and it would also pressure CPU too much. My idea is basically disabling all the "looks" and just run it as some kind of background process. Basically, simulate the open browser but not displaying anything, thus saving both RAM and CPU.

I don't need to see what's happening in these browser instance, I just need them to be open and run some Javascript on start. At the moment, I have the program, but all of the browser instances are displayed and it takes too much resources. I need to be able to run 50-60 of browser instances.

I'm developing it in .Net and C#, alongside CefSharp (chromium browser)

Does anyone have any suggestions what can I do on this matter?

THanks everyone for suggestions! If anyone need something like this, you can use headless version of cefSharp browser. It works pretty much the same for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM