21
February
2024
Optimizing Mozilla FireFox Performance - Part 2
12:18

Optimizing Mozilla FireFox Performance - Part 2

21 February 2024 12:18

This article is devoted to optimizing the display of tickers in the Mozilla Firefox web browser.

(For beginning: see part 1).

Tickers

On sites with stock exchange news, a creeping line is used with quotes for exchange rates and various assets - securities, gold. At the same time, on the one hand, the load on the processor increases, on the other hand, the browser is required to operate the “creeping line” as smoothly as possible.
"kazam")

Here I tested various FireFox settings in about:config for sites with stock quotes or news tickers.

To save processor resources, the principle of regulating the load on the central processor is used using software Throttling - idle rest cycles in the application, which are added between working operations. The purpose of this is to reduce the load on the processor. At the same time, it is necessary to maintain maximum smoothness in the reproduction of moving text objects: exchange rates and stock quotes.

Study

Testing conditions are on the website rbc.ru. Using mouse scrolling, I achieved the appearance of two creeping lines, then fixed the established value %Cpu(s).
quote_screen

First of all, I recommend enabling the following setting in the about:config menu to ensure the "crawler" is smooth:

dom.workers.throttling.enabled = true

The numbers on the right are the processor load (%) in the top program (on the second monitor) - %Cpu(s).

I adjusted the following settings based on processor load while maintaining smooth animation:

dom.timeout.throttling_delay
1 - 59
5 - 58
10 - 56
20 - 56
40 - 54
60 - 54
80 - 55
99 - 55
1000 - 56
30000 (by default) - 55
optimal value: dom.timeout.throttling_delay = 30000 (by default)

dom.timeout.foreground_throttling_max_budget
(при dom.timeout.throttling_delay = 40)
-1 - 53
100 - 51-54
1000 - 53-55
optimal value: dom.timeout.foreground_throttling_max_budget -1 (default)

dom.timeout.budget_throttling_max_delay
-1 - 58-60
0 - 54
1 - 54-56
50 - 55-58
80 - 55-57
100 - 52-54
130 - 53-56
200 - 59-60
15000 (by default) - ?
optimal value: dom.timeout.budget_throttling_max_delay -1 (for smooth movement of the ticker)

layout.throttled_frame_rate
1 - 53
2 - 56
8 - 55
optimal value: 1 (default)

dom.animations.offscreen-throttling
false - 56
true - 53
optimal value: true (default)

media.throttle-factor
1 - 58
2 - 53
4 - 54
10 - 54
20 - 55
optimal value: 2 (default)

Conclusion

Optimal values for throttling parameters in Mozilla FireFox (for playing tickers)

Parameter Default New Value
dom.workers.throttling.enabled false true
dom.timeout.budget_throttling_max_delay 15000 -1

Last modified: 12/10/2025



Related publications