Make Firefox Load Pages Faster

In general, the Firefox developers update to improve speed whenever a feature is well-tested and unlikely to cause errors. There's no hidden magic button that will triple your browsing speed. That said, experimenting with settings often helps. The most common cause of slowdowns is a buggy add-on, which this guide also covers.

Steps

Changing Config Settings

  1. Update Firefox. Many optimization tweaks from the past are now included by default in Firefox. To take advantage of them, update to the latest version. This happens automatically when you check your version number.
  2. Back up your preferences file. These settings can cause bugs and slowdown for some users. You can usually revert them without a problem, but back up the file just in case so you can restore your old preferences:
    • Open a new tab and enter about:support in the address bar.
    • Look for "Profile Folder" and click Show Folder next to it (Show in Finder on a Mac).
    • Go one level up from the folder that opens. You should see a folder with a string of letters and number, ending in ".default."
    • Right-click this folder and choose "Copy," then right-click in a backup location and select "Paste."
  3. Try one setting at a time. These settings are intended for advanced users, and could cause problems with your add-ons. It's best to change one setting at a time so you can test the effect.
    • You can find tools online to test the speed of your browser precisely.
  4. Adjust connections per server. Your browser limits the number of simultaneous connections to a single server. Upping this limit will make a noticeable change to pages with many images or videos, if your bandwidth can handle it. Increasing this too much is considered bad etiquette, and may get you banned from a server, but you have a little wiggle room:
    • Search for network.http.max-persistent-connections-per-server and double-click the Value. Increase this to a maximum of 10.[1] Some users prefer 8 to be on the safe side.
    • Search for network.http.max-connections. Set this value to 256, if it isn't already.[2]
  5. Disable animations. Firefox displays small animations when opening or closing tabs. This is usually not an issue, but you can avoid some hang-ups if you tend to open or close many tabs at once:[3]
    • Set browser.tab.animate to False.
    • Set browser.panorama.animate_zoom to False.
  6. Consider disabling prefetching. Prefetching loads pages before you visit them, guessing which links you'll click on. When working correctly, this should only use idle browser time, and will actually increase load speed. If you have unusually slow load speeds, a buggy prefetch could be the issue. Make the following changes to disable both forms of prefetch, then reverse them if there's no speed up:[4]
    • Change network.dns.disablePrefetch to True.
    • Change network.prefetch-next to False.
    • Change the value of network.http.speculative-parallel-limit to 0.
  7. Toggle hardware acceleration and WebGL. These functions use your graphics card to speed up certain functions, especially loading videos. However, this can cause slow load times or blurry text, especially with older operating systems or graphics cards. Try watching videos with these settings on and off to see which works best for you:[5]
    • Change webgl.disabled to True or False.
    • Visit about:preferences#advanced in a new tab. Check or uncheck "Use hardware acceleration."
    • Unlike most setting changes, you may need to restart Firefox for these to take effect.[6]

Troubleshooting Slowdowns

  1. Install an ad blocker. On many web pages, advertisements take up a large fraction of the load time. Install Adblock Plus or another ad-blocking add-on to prevent these ads from loading.
    • Many web hosts rely on ads for most of their revenue. Consider disabling ad block on sites you'd like to support.
  2. Start-Firefox-in-Safe-Mode. Click the menu icon (three horizontal bars), then the help icon (?), then Restart with add-ons disabled. If Firefox runs much faster in Safe Mode, a faulty add-on is slowing you down.
  3. Disable add-ons. Enter about:addons in the address bar, or click the menu icon (three horizontal bars) and select Add-ons. Disable one add-on at a time, and browse for a while to see if it speeds you up. Visit the same page to remove the add-on permanently or re-enable it, depending on your test.
  4. Switch to the default theme. If you have a custom theme, it could be slowing down your browser. Visit the Appearance tab on the add-ons page, and switch to the default theme.
  5. Minimize memory usage. If you've just closed a bunch of tabs, Firefox might lag for a while until it deletes the contents of those tabs from its memory. Get rid of them right away by visiting about:memory and clicking Minimize memory usage.[7]
  6. Adjust cache. The cache is another feature that speeds up browsing in general, but can slow you down if it gets too full for your hard drive. To adjust the cache size, visit about:preferences#advanced, click the Network tab, and check "Override cache management." Increase the cache if you have a fast drive with plenty of space, and reduce it to about 250MB if you have a slow or mostly full hard drive.
    • Clear-the-Cache-in-Firefox every couple months is a good idea, or whenever your browser gets unusually slow. You should also clear the cache before reducing its size.
  7. Reset Firefox. If you are experiencing major slowdowns on a broadband connection, you might have to reset Firefox to remove a buggy add-on or setting change. This will delete all your add-ons, themes, and download history, and return your settings to default. Visit about:support and click Refresh Firefox, or see this article for more detailed instructions.

Pipelining

  1. Understand pipelining. Pipelining allows Firefox to open more than one connection to a server. This will only help if you have a good broadband connection. Even then, this only gives a small speed boost, and can even cause slight slowdowns or errors. The difference in results are probably dependent on the way the web page is structured, so give it a try and see if it helps for your most visited websites.[8][9]
  2. Visit about:config. Open a new Firefox tab and enter about:config in the address bar.
  3. Enable pipelining. Search for network.http.pipelining using the bar at the top of the page. This entry should be set to "Status: default" and "Value: false." Double-click that line to change it to "Status: user set" and "Value: true."
  4. Adjust other settings (optional). There are quite a few related settings you can change as well. Adjusting most of these is not recommended unless you know what you are doing. Here are a couple you could try:
    • network.http.pipelining.maxrequests was capped at 8 for many years, but now the limit (and the default) is 32. Raising this number could cause errors. Lowering it will reduce speed but free up your bandwidth a little.
    • Enabling network.http.pipelining.aggressive doubles down on the tactic: when it works, you'll be even faster, and when it doesn't, you'll be much slower.[9]
    • If you route all your internet use through a proxy, you'll need to enable network.http.proxy.pipelining. (You'll need to do a new search to find this.)
  5. Switch to secure-only pipelining if you encounter problems. If pipelining is slowing you down, or causing errors in your web pages, return it to the default "false" position. You can still implement pipelining for secure websites by enabling network.http.pipelining.ssl. Most pipeline-related errors come from proxy servers, which are not an issue with secure connections.[10]
    • Despite the problems with "unsecure" connections, pipelining does not open you up to any security risks.

Tips

  • If a change causes your browsing to slow down or load images in the wrong way, just undo the tweaks in about:config or restore your backup.

Warnings

  • There are many myths going around about additional Firefox setting tweaks. Tweaks which almost never speed up modern Firefox include increased RAM caching, initial paint delay, and trim on minimize.[11][12]
  • "Speed" add-ons are not recommended. All they do is change the settings already described here, giving you less control and possibly relying on out-of-date tactics.

Related Articles

Sources and Citations