I hope you are all having a wonderful day.
I've been working on a school project regarding automation with Selenium in C#. I'm trying to optimize my application as best as possible, and am trying to block all unnecessary stuff on the page from loading/showing. I've read that one of the best ways of doing this is by making a custom iFrame, which can then block certain CSS or code from loading. What is the best way of doing this? I'd say I'm decent at C# and Selenium but I have no clue on how to code a custom iFrame or block CSS. I'd imagine you would need to use some kind of JS script for this?
Does anyone have any clue or possible idea's on what's the best way of going about this?
Thanks in advance!
I can provide some code if this helps.