-
-
Notifications
You must be signed in to change notification settings - Fork 354
/
Copy path02-speed.js
96 lines (74 loc) · 4.06 KB
/
02-speed.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#filter dumbComments emptyLines substitution
// -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifdef XP_UNIX
#ifndef XP_MACOSX
#define UNIX_BUT_NOT_MAC
#endif
#endif
/****************************************************************************
* SECTION: GENERAL *
****************************************************************************/
// PREF: initial paint delay
// How long FF will wait before rendering the page (in ms)
pref("nglayout.initialpaint.delay", 0);
pref("nglayout.initialpaint.delay_in_oopif", 0);
// PREF: page reflow timer
// Rather than wait until a page has completely downloaded to display it to the user,
// web browsers will periodically render what has been received to that point.
// How often the content is redrawn is controlled by the interval value.
// [NOTE] Lowering the interval will increase responsiveness
// but also increase the total load time.
// [WARNING] If this value is set below 1/10 of a second, it starts
// to impact page load performance.
pref("content.notify.interval", 100000);
/****************************************************************************
* SECTION: GFX RENDERING TWEAKS *
****************************************************************************/
// PREF: GPU-accelerated Canvas2D
// [WARNING] May cause issues on some Windows machines using integrated GPUs
// Add to your overrides if you have a dedicated GPU.
// [NOTE] Higher values will use more memory.
user_pref("gfx.canvas.accelerated.cache-items", 4096);
user_pref("gfx.canvas.accelerated.cache-size", 512);
user_pref("gfx.content.skia-font-cache-size", 20);
// PREF: image tweaks
user_pref("image.mem.decode_bytes_at_a_time", 32768);
/****************************************************************************
* SECTION: MEDIA CACHE *
****************************************************************************/
// PREF: adjust video buffering periods when not using MSE (in seconds)
user_pref("media.cache_readahead_limit", 7200);
user_pref("media.cache_resume_threshold", 3600);
/****************************************************************************
* SECTION: NETWORK *
****************************************************************************/
// PREF: increase the absolute number of HTTP connections
user_pref("network.http.max-connections", 1800);
user_pref("network.http.max-persistent-connections-per-server", 10);
user_pref("network.http.max-urgent-start-excessive-connections-per-host", 5);
// PREF: pacing requests
user_pref("network.http.pacing.requests.enabled", false);
// PREF: increase TLS token caching
user_pref("network.ssl_tokens_cache_capacity", 10240);
/****************************************************************************
* SECTION: SPECULATIVE LOADING *
****************************************************************************/
// PREF: DNS prefetching
user_pref("network.dns.disablePrefetch", true);
user_pref("network.dns.disablePrefetchFromHTTPS", true);
// PREF: Network Predictor (NP)
user_pref("network.predictor.enabled", false);
/****************************************************************************
* SECTION: EXPERIMENTAL *
****************************************************************************/
// PREF: CSS Masonry Layout [NIGHTLY]
user_pref("layout.css.grid-template-masonry-value.enabled", true);
// PREF: Prioritized Task Scheduling API [NIGHTLY]
user_pref("dom.enable_web_task_scheduling", true);
// PREF: HTML Sanitizer API [NIGHTLY]
user_pref("dom.security.sanitizer.enabled", true);
// PREF: compression level for cached JavaScript bytecode
user_pref("browser.cache.jsbc_compression_level", 3);