diff --git a/profiles/home-manager/apps/firefox.nix b/profiles/home-manager/apps/firefox.nix index f01e15b..765e842 100644 --- a/profiles/home-manager/apps/firefox.nix +++ b/profiles/home-manager/apps/firefox.nix @@ -154,6 +154,33 @@ in { "_2e5ff8c8-32fe-46d0-9fc8-6b8986621f3c_-browser-action" ]; }; + + # Performance + "content.notify.interval" = 100000; + "gfx.canvas.accelerated.cache-items" = 4096; + "gfx.canvas.accelerated.cache-size" = 512; + "gfx.content.skia-font-cache-size" = 20; + "browser.cache.jsbc_compression_level" = 3; + "media.cache_readahead_limit" = 7200; + "media.cache_resume_threshold" = 3600; + "image.mem.decode_bytes_at_a_time" = 32768; + "network.http.max-connections" = 1800; + "network.http.max-persistent-connections-per-server" = 10; + "network.http.max-urgent-start-excessive-connections-per-host" = 5; + "network.dnsCacheExpiration" = 3600; + "network.ssl_tokens_cache_capacity" = 10240; + "network.dns.disablePrefetch" = true; + "network.dns.disablePrefetchFromHTTPS" = true; + "network.prefetch-next" = true; + "network.predictor.enabled" = true; + + "layout.css.grid-template-masonry-value.enabled" = true; + "dom.enable_web_task_scheduling" = true; + "dom.security.sanitizer.enabled" = true; + + # RAM + "browser.cache.memory.enable" = false; + "media.memory_cache_max_size" = 8192; }; }; };