yokoffing / Betterfox

Firefox user.js for speed, privacy, and security. Your favorite browser, but better.
MIT License
6.11k stars 150 forks source link

Tweaking nglayout.initialpaint.delay #239

Closed gunir closed 1 year ago

gunir commented 1 year ago

Wiki: http://kb.mozillazine.org/Nglayout.initialpaint.delay

Mozilla applications render web pages incrementally - they display what's been received of a page before the entire page has been downloaded. Since the start of a web page normally doesn't have much useful information to display, Mozilla applications will wait a short interval before first rendering a page. This preference controls that interval. Lower values will make a page initially display more quickly, but will make the page take longer to finish rendering. Higher values will have the opposite effect.

Currently Betterfox is using 0 for this key, but Firefox rendering engine isn't tweaked for displaying page instantly like Chrome, in some cases (slow computer or Dark Reader), lowering this value hurts performance by a lot: https://old.reddit.com/r/firefox/comments/o0xl1q/reducing_cpu_usage_of_dark_reader_extension/

We should list more options and explain to users how to pick their best value instead, for example:

Thanks for reading.

yokoffing commented 1 year ago

2000ms is awfully slow on a modern machine.