V
V
Vladimir Kovalev2020-12-27 16:10:33
Python
Vladimir Kovalev, 2020-12-27 16:10:33

Why does a page in a browser load faster when it is maximized?

Hello. I use Yandex browser automation. When the browser window is minimized, the page does not load at all, as soon as it is expanded, "vanity, smoke with a rocker" begins.

  1. How to make the browser nimble when the window is minimized?
  2. Where to get a list of all possible method arguments .add_argument()for an objectwebdriver.ChromeOptions()

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Yakushenko, 2020-12-27
@Tungsteniac

1. Run it in headless mode so that the window is always "active". When minimized, the application goes into the background.
2. https://chromium.googlesource.com/chromium/src/+/m...

A
Anton, 2020-12-28
@anton99zel

I think this is what - in chrome browsers there are settings:

Do not disable services running in the background when the browser is closed
Use hardware acceleration (if available)

And the computer has
Economy mode, Maximum performance

And if we look at the task manager, then we see a bunch of browser processes, even if we have one tab open.
There is also a mode of reloading / preloading results + a mode of auto-updating tabs, bookmarks, passwords ...
From all this, we can assume that when the browser is active, then the processes are faster, at least this is reflected in the start of such processes, and hence updates and downloads ...
When the browser is inactive, minimized, the system understands that some processes can be put to sleep by allocating memory and hardware acceleration to other computer processes.
I believe that this can be observed on low-powered computers and it’s worth playing around with the above settings, but it’s better to use Chrome, Yandex has already stuffed too much...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question