Python Forum

Full Version: [Selenium] Any Tricks To Block Junk Scripts From Loading?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I visit CNN for example, it loads all kinds of junk that makes the load time really high:

[Image: seIvtm_XTfmJKEXBJIgUHA.png]

Tracking scripts, analytics, ads services, all kinds of unwanted crap.

I don't want to completely disable javascript.

What's the best solution to block these?

I've heard it's possible to install plugins like NoScript for Chromedriver..

Is there a better way? What do you guys recommend?