如果您已经使用Firefox很长时间,您可能已经注意到它随着时间的推移变得越来越慢。可能需要几秒钟才能启动或加载网页需要更长的时间。您可能会开始注意到在选项卡之间切换需要一秒钟左右的时间,或者菜单选项不会(menu option doesn)立即弹出。
如果您的Firefox安装运行缓慢或死机超出您的预期,有很多不同的方法可以加快速度。在本文中,我将介绍多年来我学到的所有技巧和窍门,以保持Firefox 快速高效(Firefox fast and efficient)。根据您的操作系统和系统配置(operating system and system configuration),某些调整可能会给您带来比其他调整更大的提升。
请注意,一些调整需要更改about:config中的浏览器设置。如果你不知道我在说什么,请阅读我之前关于备份和修改Firefox中的 about: (Firefox)config 配置(config configuration)的帖子。
启用 HTTP 缓存
可以在Firefox中启用一个新的HTTP 缓存(HTTP cache)选项,这将有助于减少 UI 故障和各种其他浏览器崩溃。打开 about: config 并搜索(config and search)以下条目:
browser.cache.use_new_backend
双击它并将值从0更改为1。然后,您可以简单地关闭 about: config 选项卡(config tab)并继续浏览。无需重启浏览器或电脑(browser or computer)等。新的缓存将被启用,您将获得速度提升(speed boost)和更流畅的浏览体验(browsing experience)。
刷新火狐
Firefox有一个非常酷的功能,它基本上对您的(Firefox)Firefox 安装(Firefox installation)执行自动调整。但是,您只想在完全了解它的作用后执行此操作。首先,它将保留您的浏览历史、书签、密码、cookies、网站自动填充信息和个人字典。
它将删除扩展和主题、网站权限、添加的搜索引擎、下载历史(download history)、安全设置、插件设置、工具栏自定义、用户样式和社交功能。要访问它,您必须在地址栏中输入about:support。
单击右上角的刷新 Firefox(Refresh Firefox)按钮开始使用。我已经多次使用此功能,效果很好。重新安装一些附加组件确实需要一些时间,但我发现它可以帮助我摆脱我从未使用过的附加组件。
启用安全模式
Firefox有一个很好的功能,称为安全模式(Safe mode),它可以禁用扩展程序和主题,以确定扩展程序是否导致问题。由于Firefox是关于扩展的,你肯定会遇到一些写得很糟糕的代码,这可能会导致很多麻烦。
如果您发现在安全模式下浏览速度比正常浏览速度更快,那么您几乎可以肯定它是导致速度变慢的扩展程序。您可以通过单击菜单图标(menu icon)然后单击帮助图标以安全模式重新启动(help icon)Firefox。
现在选择Restart with Add-ons Disabled进入安全模式。
安全模式还将关闭硬件加速(hardware acceleration)并重置工具栏和按钮自定义(toolbar and button customizations)。当您正常重新启动Firefox(Firefox)时,一切都会恢复正常,所以不要以为您丢失了您可能进行的任何自定义。
此外,当您重新启动时,它会要求您以安全模式启动(Start in Safe Mode)或刷新 Firefox(Refresh Firefox),这是我上面已经提到的另一个提示。
最好先禁用所有的插件,然后再一一启用,看看是哪一个导致火狐(Firefox)变慢、死机或死机(freeze or crash)。您可以通过单击Firefox 菜单并单击(Firefox menu and clicking)Add -ons( Add-ons)来查看所有附加组件和插件。
您禁用或删除的附加组件和插件越多,Firefox的运行速度就越快。一些插件将设置为 Ask to Activate,这没关系。您想检查所有设置为Always Activate的选项,并查看哪些选项可以切换为 Ask to Activate。
最小化内存使用
Firefox有很多这样的内置性能技巧,另一个是最小化内存使用(memory usage)。继续在地址栏中输入(address bar)about:memory,您可以获得有关Firefox的详细内存使用信息。
您将在Free Memory下看到一个名为Minimize memory usage的按钮。单击(Click)它,它将尝试立即释放内存,从而使Firefox运行得更快。如果您在Firefox中打开了许多选项卡并且您最近关闭了其中的很多选项卡,那么这是一个不错的选择。之前由这些选项卡持有但仍被Firefox使用的任何内存都将被释放。
清除缓存
另一种使Firefox 更快(Firefox faster)的简单方法是定期清除缓存。默认情况下,Firefox会缓存您访问的大多数网站的内容,以便您再次访问时加载速度更快。在短期内,这很有效并且确实可以加快浏览速度,但是,一旦缓存变得非常大,它就会开始减慢速度。
如果您单击Firefox 菜单(Firefox menu),单击选项(Options),然后单击高级(Advanced),您将看到一个网络(Network)选项卡,可让您清除缓存。
我不建议经常清除缓存,因为这会减慢浏览速度。最好的办法是每隔几个月检查一次或检查覆盖自动缓存管理框(Override automatic cache management box)并根据您拥有的硬盘驱动器类型设置值。由于此缓存是通过磁盘访问的,因此如果您的硬盘驱动器速度较慢,它可能会非常慢。
但是,如果您有一个非常快的SSD 驱动器(SSD drive),那么使用缓存可能会更有益。因此,如果您的硬盘驱动器速度较慢,请保持较小(<250 MB),如果您的硬盘速度非常快,请不要理会它。
Firefox 流水线
如果您使用Firefox很长时间,您可能在许多博客上都遇到过这种 hack。流水线(Pipelining)是一种功能,基本上可以让Firefox打开到服务器的多个连接,理论上加载页面更快。我对这个设置的结果好坏参半,所以最好先自己测试一下,看看是否值得保持启用。
对于最大连接数应该设置什么值有不同的看法,但大多数顽固的Firefox粉丝的共识是 8。为了启用流水线,请转到 about: config 并(config and type) 在过滤器(filter box)中输入network.http.pipe框,你会看到几个设置。
您需要更改的值如上图所示。如果不清楚,我还在下面列出了它们。
network.http.pipelining – true
network.http.pipelining.aggressive – true
network.http.pipelining.maxrequests – 8
network.http.pipelining.ssl – true
其他设置
有几个更晦涩的设置可能会加快您的Firefox 浏览(Firefox browsing)速度,但不能保证结果。最好对这些进行测试,看看是否有任何明显的差异。
network.dns.disableIPv6 – true
browser.tabs.animate – false
browser.display.show_image_placeholders – false
希望(Hopefully)您的Firefox安装运行得更快一些。我不建议使用FasterFox之类的附加组件,因为它们只会更改我们上面讨论过的设置,并且添加更多附加组件来加速Firefox没有任何意义。如果您有自己的Firefox(Firefox)加速技巧,请在评论中告诉我们。享受!
The Ultimate Guide to Making Firefox Faster
If уou’νe been using Firefоx for a long timе, you may hаve noticed it getting slower аs time passed. Maybe it takes a fеw sеconds to start up or takes a bit longer loading webpages. You might start noticing that it takes a second or so to switch between tabs or thаt the menu option doesn’t pop υp instantly.
If your installation of Firefox runs slow or freezes more than you’d care for, there are a lot of different ways to speed things up a bit. In this article, I’m going to go through all the tips and tricks I’ve learned over the years to keep Firefox fast and efficient. Depending on your operating system and system configuration, some tweaks might give you more of a boost than others.
Note that some tweaks require changing the browser settings in about:config. If you don’t know what I’m talking about, read my previous post on backing up and modifying the about:config configuration in Firefox.
Enable HTTP Cache
There is a new HTTP cache option that can be enabled in Firefox, which will help reduce UI glitches and various other browser crashes. Open about:config and search for the following entry:
browser.cache.use_new_backend
Double-click on it and change the value from 0 to 1. You can then simply close the about:config tab and continue browsing. There is no need to restart the browser or computer, etc. The new cache will be enabled and you should get a speed boost and a smoother browsing experience.
Refresh Firefox
Firefox has a really cool feature that basically performs an automatic tune up on your Firefox installation. However, you only want to do this after you understand exactly what it does. Firstly, it will keep your browsing history, bookmarks, passwords, cookies, website auto-fill info and personal dictionary.
It will delete extensions and themes, website permissions, added search engines, download history, security settings, plugin settings, toolbar customizations, user styles and social feature. To get to it, you have to type in about:support in the address bar.
Click on the Refresh Firefox button at the top right to get started. I have used this feature a several times and it works great. It does take a bit of time reinstalling a few add-ons, but I’ve found that it helps me get rid of the add-ons I never used in the first place.
Enable Safe Mode
Firefox has a nice feature called Safe mode that disables extensions and themes in order to determine whether an extension is causing problems. Since Firefox is all about extensions, you’ll definitely run into some with poorly written code that can cause a lot of grief.
If you find that browsing in safe mode is super fast compared to normal browsing, then you can almost guarantee that it’s an extension causing the slowdown. You can restart Firefox in safe mode by clicking on the menu icon and then clicking on the help icon.
Now choose Restart with Add-ons Disabled to get into safe mode.
Safe mode will also turn off hardware acceleration and will reset toolbar and button customizations. Everything will go back to normal when you restart Firefox normally so don’t think you’ve lost any customizations you might have made.
Also, when you restart, it’ll ask you to Start in Safe Mode or Refresh Firefox, which is the the other tip I already mentioned above.
It’s best to disable all add-ons and then enable them one by one to see which one is causing Firefox to slow down, freeze or crash. You can see all the add-ons and plugins by clicking on the Firefox menu and clicking on Add-ons.
The more add-ons and plugins you disable or delete, the faster Firefox will run. Some plugins will be set to Ask to Activate, which is ok. You want to check all the ones that are set to Always Activate and see which ones can be switched to Ask to Activate.
Minimize Memory Usage
Firefox has quite a few of these built-in performance tricks and another one is to minimize the memory usage. Go ahead and type in about:memory into the address bar and you can get detailed memory usage information about Firefox.
You’ll see a button under Free Memory called Minimize memory usage. Click on that and it will try to free up memory immediately and therefore make Firefox run faster. This is a good option to use if you had a bunch of tabs open in Firefox and you recently closed out a lot of them. Any memory being previously held by those tabs and still being used by Firefox will be freed.
Clear Cache
Another easy way to make Firefox faster is to periodically clear the cache. By default, Firefox will cache the contents of most websites you visit, so that they load faster when you visit them again. In the short term, this works well and does speed up browsing, however, once the cache becomes very large, it can start to slow things down.
If you click on the Firefox menu, click Options and then click on Advanced, you’ll see a Network tab that lets you clear the cache.
I don’t suggest clearing the cache very often, as that will slow down browsing. The best thing to do is to check every few months or to check the Override automatic cache management box and set the value depending on what type of hard drive you have. Since this cache is accessed via disk, it can be pretty slow if you have a slow hard drive.
However, if you have an extremely fast SSD drive, then using the cache can be more beneficial. So keep it small (<250 MB) if you hard drive is slow and leave it alone if you have a very fast hard disk.
Firefox Pipelining
If you have used Firefox for a long time, you have probably come across this hack on many blogs. Pipelining is a feature that basically lets Firefox open multiple connections to a server, theoretically loading pages faster. I’ve had mixed results with this setting, so it’s best to test it yourself first to see whether it’s worth keeping enabled.
There are different views on what value should be set for the max number of connections, but the consensus from most diehard Firefox fans is 8. In order to enable pipelining, go to about:config and type in network.http.pipe in the filter box and you’ll see several settings.
The values you need to change are shown in the image above. I have also listed them below if it’s not clear.
network.http.pipelining – true
network.http.pipelining.aggressive – true
network.http.pipelining.maxrequests – 8
network.http.pipelining.ssl – true
Other Settings
There are a couple of more obscure settings that could possibly speed up your Firefox browsing, but results are not guaranteed. It’s best to test these and see if there is any noticeable difference.
network.dns.disableIPv6 – true
browser.tabs.animate – false
browser.display.show_image_placeholders – false
Hopefully, your installation of Firefox is running a bit faster. I don’t recommend using add-ons like FasterFox because they only change the settings we have talked about above and adding more add-ons to speed up Firefox just doesn’t make any sense. If you have your own tip for speeding up Firefox, let us know in the comments. Enjoy!