GitHub Maintained GitHub Maintained Visitors

Betterfox

31% faster than regular Firefox<sup>1</sup> :rocket:

about:config tweaks to enhance Mozilla Firefox.

:new: Now with ESR support.

Made for everyday browsing

A secure, blazing fast browsing experience. Without breakage.

Betterfox is an opinionated preference list inspired by the law of diminishing returns and the minimum effective dose.

Required reading

If you don’t have it already: Get Firefox

  1. Create a backup profile.
  2. Download the user.js file here (Right click > Save Link As).
  3. Review Common Overrides and make any necessary changes.
  4. Open Firefox. In the URL bar, type about:profiles and press Enter.
  5. For the profile you want to use (or use default), click Open Folder in the Root Directory section.
  6. Move the user.js file into the folder.

After restarting Firefox:

  1. Get an ad blocker like uBlock Origin with our recommended filters.
  2. Enable DNS-level protection with NextDNS. <sup><i>Use the link and support this page!</i></sup>
    • Check out our configuration guide for the best experience.
    • See how to quickly enable secure DNS in Firefox.

Simple goals

  1. Minimalism: get what isn’t needed out of the way
  2. Efficiency: unleash Firefox’s ability to be fast and performant
  3. Privacy: protect your data without causing site breakage

Simple configs

Fastfox, Securefox, Peskyfox, and Smoothfox are guides to settings within Firefox.

The user.js — a configuration file that controls Firefox settings — is curated from these guides.

List Description
Fastfox Increase Firefox’s browsing speed. Give Chrome a run for its money!
Securefox Protect user data without causing site breakage.
Peskyfox Provide a clean, distraction-free browsing experience.
Smoothfox Get Edge-like smooth scrolling on your favorite browser — or choose something more your style.
user.js All the essentials. None of the breakage. This is your user.js.

Recognition

Browser Integration

YouTube

Podcasts

Articles

Guides

Reviews

  • “I use this one … The performance is absolutely amazing. There’s definitely a huge difference when it comes to loading sites.” - DIRIKtv
  • “BetterFox … will provide good-enough privacy and help with performance.” - Qdoit12Super
  • “…drastically changed the experience with Firefox for me. Improved speed, security, smoothness, and removed clutter.” - AppDate
  • “Firefox with uBlock Origin extension and tuned with Betterfox is faster than Safari.” - cugeloid
  • “I don’t think I could use Firefox without Betterfox.” - Professional_Fun4616
  • “The best collection of tweaks available.” - AuRiMaS
  • “FF is now much snappier!” - whotheff
  • “…the experience is so good now I don’t think I’ll go back to any of the chromium based browsers.” - Mr_Compromise

Support

If you like the project, leave a :star: (top right) and become a stargazer!

Stargazers repo roster for @yokoffing/Betterfox

<a href=‘https://ko-fi.com/Q5Q5G8EPH’ target=‘_blank’><img height=‘36’ style=‘border:0px;height:36px;’ src=‘https://storage.ko-fi.com/cdn/kofi2.png?v=3’ border=‘0’ alt=‘Buy Me a Coffee at ko-fi.com’ /></a> <noscript><a href=“https://liberapay.com/yokoffing/donate”><img alt=“Donate using Liberapay” src=“https://liberapay.com/assets/widgets/donate.svg”></a></noscript>

Credit

  • Betterfox mirrors the ongoing work provided by arkenfox. Additionally, this repository includes content reproduced or adapted from other sources. Credit for overlapping material goes to the original authors.
  • Appreciation goes to the Firefox team and developers working on Bugzilla, fighting for the open web.
  • A special thanks to Alex Kontos of Waterfox for his collaboration in v.116.
  • Many thanks to the 2021 Ghostery team for testing Betterfox at scale in its early days.

<div align=‘center’> <a href=‘https://www.websitecounterfree.com’><img src=‘https://www.websitecounterfree.com/c.php?d=9&id=19653&s=1’ border=‘0’ alt=‘Free Website Counter’></a><br / > since 23 July 2022</div>

  • sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    arrow-up
    53
    ·
    4 months ago

    This reads a lot like an ad. Can you explain where that 31% faster number comes from? I don’t see many details in the linked article, and I also don’t see why a user.js change should have any impact, much less >30%.

    • Godort@lemm.ee
      link
      fedilink
      arrow-up
      40
      ·
      edit-2
      4 months ago

      I just glanced over the options it changes. From what I can tell it:

      • enables GPU rendering for some canvas2d options

      • doubles cache sizes for almost everything

      • disables some speculative prefetching

      I cant imagine these options are making a 30% speed difference, outside of some very specialized tests. But, I also haven’t tried it so I could very well be wrong.

      • sugar_in_your_tea@sh.itjust.works
        link
        fedilink
        arrow-up
        6
        ·
        4 months ago

        It’s probably on specific hardware then. At least the last (disabling speculative prefetching) sounds like tuning to the benchmark, and it very well could be worse in real-world usage.

    • ahal@lemmy.ca
      link
      fedilink
      arrow-up
      30
      arrow-down
      2
      ·
      edit-2
      4 months ago

      I too am skeptical.

      Mozilla cares a lot about performance. It is monitored obsessively and there are entire teams dedicated to squeezing out every last drop of performance. Heaven and earth would be moved for a 30% perf boost. I’m guessing either there’s some very severe tradeoffs to these prefs, or setting them somehow breaks the methodology used to obtain this number.

      Edit: also benchmarks can be notoriously misleading. I don’t have any opinions or knowledge on basemark (the benchmark used to get this 30% number), but speedometer v3 is the most state of the art and generally agreed upon benchmark for performance these days.

      That doesn’t mean the 30% number is bogus… Just that it should be followed by “…on basemark” rather than implying it’s conclusive to overall performance.

      • GenderNeutralBro@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        9
        ·
        4 months ago

        Looking over the Fastfox.js config, it looks like most settings fall into one of three categories:

        1. Subjective appearance of speed or responsiveness (perhaps at the expense of objectively-measurable load times)
        2. Experimental options that don’t apply to all hardware or OSes (e.g. GPU acceleration)
        3. Settings that optimize performance at the expense of memory, CPU, or network usage (e.g. cache sizes and connection limits)

        I don’t see anything that makes me think Mozilla’s defaults are unreasonable. It’s not like Mozilla is leaving performance on the table, but rather that they chose a different compromise here and there, and use highly-compatible defaults. That said, it does seem like there is room for individual users to improve on the defaults — particularly if they have fast internet connections and lots of RAM.

        For example:

        // [NOTE] Lowering the interval will increase responsiveness
        // but also increase the total load time.
        user_pref(“content.notify.interval”, 100000); // (.10s); default=120000 (.12s)

        This seems very much like a judgment call and I guess Firefox’s defaults would actually have better objective load times and better benchmark scores. That doesn’t mean it’s objectively better, but it seems reasonable, at least.

        // PREF: GPU-accelerated Canvas2D
        // Use gpu-canvas instead of to skia-canvas.
        // [WARNING] May cause issues on some Windows machines using integrated GPUs [2] [3]

        // [NOTE] Higher values will use more memory.

        Again, the defaults seem to make sense. Perhaps Mozilla could add an optimization wizard to detect appropriate settings for your hardware, and let the user select options like “maximize speed” vs “maximize memory efficiency”. These are not one-size-fits-all settings.

        Fastfox also disables a lot of prefetching options, which…seems counter to the goal of improving speed. Not really sure what to make of that.