Help - Search - Members - Calendar
Full Version: How to make ff faster!
Neowin Forums > Help & Discussion Center > Software Discussion & Assistance > Web Browser Discussion > Firefox (Gecko)
Amitz
In user.js : in "firefox/profile/*.defult/"


// Last value in milliseconds (default is 250) this make ff fast like Opera!~!
user_pref("nglayout.initialpaint.delay", 0);

//net set
user_pref("network.http.max-connections", 128);
user_pref("network.http.max-connections-per-server", 64);
user_pref("network.http.max-persistent-connections-per-proxy", 64);
user_pref("network.http.max-persistent-connections-per-server", 32);
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 64);
user_pref("network.http.proxy.pipelining", true);

// Maximum cache capatiy
user_pref("browser.cache.memory.capacity", 65536);

now restart your firefox and u'l see the differents.

to make sure this settings are changed open "about:config" and check it out.


tell me how it make a different and suggest more internet setting u use.
GL


links:

http://www.supernova00.biz/userjs.html
http://www.mozilla.org/support/firefox/tips
toadeater
If you're getting alot of Fx crashes in Windows, using so many connections is one of the causes. It's not a completely harmless tweak.
bangbang023
Quote - (toadeater @ Jun 16 2006, 18:33) [snapback]587612964[/snapback]

If you're getting alot of Fx crashes in Windows, using so many connections is one of the causes. It's not a completely harmless tweak.

that's why I use gentler setup. Here's my user.js:
CODE
user_pref("content.max.tokenizing.time", 600000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 200000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 200000);
user_pref("content.maxtextrun", 8191);
user_pref("dom.disable_window_status_change", true);
user_pref("nglayout.initialpaint.delay", 100);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("network.http.proxy.pipelining", true);
// user_pref("network.http.request.max-start-delay", 5);

// Inline autocomplete
user_pref("browser.urlbar.autoFill", true);

antoxicion
does fasterfox extension do this? or is it better to do it manually? if so, maybe refer me to which file i must edit
bangbang023
Quote - (antoxicion @ Jun 16 2006, 19:45) [snapback]587613110[/snapback]

does fasterfox extension do this? or is it better to do it manually? if so, maybe refer me to which file i must edit

Fasterfox does similar things, though I prefer knowing exactly what I'm doing. To use my file, you simply create a user.js file in your Firefox profile directory. For instance, I have my file in:
C:\Documents and Settings\Chris\Application Data\Mozilla\Firefox\Profiles\q5dvjgu3.Chris_032706

Then just copy and paste that text into the file. It's easy plus it's convenient when needing to bring your settings over to a new profile.
primexx
opening excessive ammounts of connections are useless and may slow it down also. And some settings are limited anyways so whatever number you type in it'll always be at a specified max, i forget which setting that was.

Anyways here's my settings which I've tested and works the best. For broadband only.

Quote -
Open "about:config"

Speed Settings
--------------------

Set Value:
network.http.max-connections "48"
network.http.max-connections-per-server "24"
network.http.max-persistent-connections-per-proxy "16"
network.http.max-persistent-connections-per-server "8"
network.http.pipelining "true"
network.http.pipelining.maxrequests "8"
network.http.proxy.pipelining "true"
browser.cache.disk.capacity "1024000" (Or whatever you want, actually. It depends on the machine)

Create Value:
[integer] nglayout.initialpaint.delay "50"
[integer] browser.cache.memory.capacity "10240" (This and the two following settings are all dependant on the machine and you should test out the best performance)
[integer] network.dnsCacheExpiration "5120"
[integer] network.dnsCacheEntries "512"
[boolean] config.trim_on_minimize "true"


Other Settings
----------

plugin.expose_full_path "true" (I dont remember what this is)
browser.display.focus_ring_width "0" (Gets rid of dotted focous border around active items)
browser.display.show_image_placeholders "false" (gets rid of image placeholders...i think)
NoScript Permanent Allowed URLS: noscript.permanent (This is just a note to myself of which setting the noscript perm allowed URLs are located in)

Links
----------

http://forums.mozillazine.org/viewtopic.php?t=53650
http://preferential.mozdev.org/preferences.html
brian502
Quote - (bangbang023 @ Jun 16 2006, 18:40) [snapback]587612978[/snapback]

that's why I use gentler setup. Here's my user.js:
CODE
user_pref("content.max.tokenizing.time", 600000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 200000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 200000);
user_pref("content.maxtextrun", 8191);
user_pref("dom.disable_window_status_change", true);
user_pref("nglayout.initialpaint.delay", 100);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("network.http.proxy.pipelining", true);
// user_pref("network.http.request.max-start-delay", 5);

// Inline autocomplete
user_pref("browser.urlbar.autoFill", true);



Very noticable improvement w/ this setup! Much Thanks!
Jase
Quote - (bangbang023 @ Jun 17 2006, 08:40) [snapback]587612978[/snapback]

that's why I use gentler setup. Here's my user.js:
CODE
user_pref("content.max.tokenizing.time", 600000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 200000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 200000);
user_pref("content.maxtextrun", 8191);
user_pref("dom.disable_window_status_change", true);
user_pref("nglayout.initialpaint.delay", 100);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("network.http.proxy.pipelining", true);
// user_pref("network.http.request.max-start-delay", 5);

// Inline autocomplete
user_pref("browser.urlbar.autoFill", true);



I would realy like to use that config but i dont know where the firefox profiles are in Windows Vista sad.gif
bangbang023
Quote - (Jase @ Jun 17 2006, 15:29) [snapback]587615194[/snapback]

I would realy like to use that config but i dont know where the firefox profiles are in Windows Vista sad.gif

lol do a file search for the file named "prefs.js". That file should be in the root of the profile directory.
Jase
Quote - (bangbang023 @ Jun 18 2006, 05:34) [snapback]587615200[/snapback]

lol do a file search for the file named "prefs.js". That file should be in the root of the profile directory.


that is very helpful but it seems Search is buggered in my version of vista cry.gif
Valerus
thanks Chris. smile.gif
primexx
Quote - (Jase @ Jun 17 2006, 12:43) [snapback]587615219[/snapback]

that is very helpful but it seems Search is buggered in my version of vista cry.gif


go to about:config and set the settings from there.
Dessimat0r
64 pipelining requests will rape most connections. 10 is far more reasonable.
Jimmie
Quote - (Dessimat0r @ Jun 17 2006, 18:03) [snapback]587615547[/snapback]

64 pipelining requests will rape most connections. 10 is far more reasonable.

8 is the maximum value for that preference. The maximum will be used if it's set to to a value greater than 8.
xpgeek
I use the following settings.

user_pref("browser.cache.memory.capacity", 65536);
user_pref("browser.download.manager.focusWhenStarting", true);
user_pref("browser.download.manager.showAlertOnComplete", false);
user_pref("browser.link.open_newwindow.restriction", 0);
user_pref("browser.sessionhistory.max_total_viewers", 0);
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("dom.disable_window_open_feature.resizable", true);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 32);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.prefetch-next", false);
user_pref("nglayout.initialpaint.delay", 100);
user_pref("ui.submenuDelay", 50);
Chris Allen
FasterFox works well enough for me smile.gif
bangbang023
Quote -
Wave' date='Jun 19 2006, 01:18' post='587618900']
FasterFox works well enough for me smile.gif

For most people it will work well enough. To be honest, I just prefer having more knowledge of the settings I'm changing and how best to configure them. Also, I made that user.js up way before fasterfox was released, so I had no other choice lol.
Jzilla
Quote - (Amitz @ Jun 16 2006, 03:05) [snapback]587610970[/snapback]


user_pref("network.http.pipelining.maxrequests", 64);

http://www.supernova00.biz/userjs.html

Hmm... supernova00 should know better about the maxrequests pref being hardcoded at 8 max as anything greater is still 8 ...as he is a regular at MozillaZine, which has seen a large number of these so called make firefox faster tweak threads, where these settings such as the pipelining can actually make Firefox slower for some sites or images load in wrong place.


CrisCr0ss
Quote - (bangbang023 @ Jun 16 2006, 18:40) [snapback]587612978[/snapback]

that's why I use gentler setup. Here's my user.js:
CODE
user_pref("content.max.tokenizing.time", 600000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 200000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 200000);
user_pref("content.maxtextrun", 8191);
user_pref("dom.disable_window_status_change", true);
user_pref("nglayout.initialpaint.delay", 100);
user_pref("network.http.max-connections", 32);
user_pref("network.http.max-connections-per-server", 8);
user_pref("network.http.max-persistent-connections-per-proxy", 8);
user_pref("network.http.max-persistent-connections-per-server", 4);
user_pref("network.http.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("network.http.proxy.pipelining", true);
// user_pref("network.http.request.max-start-delay", 5);

// Inline autocomplete
user_pref("browser.urlbar.autoFill", true);




wow, i dumped fasterfox for this tongue.gif, awsome thanks
rdf8585
I just use Fasterfox, but I have it set to "optimized" as opposed to turbo-charged.

Advanced prefetching off.
bangbang023
Quote - (CrisCr0ss @ Jun 23 2006, 17:37) [snapback]587634765[/snapback]

wow, i dumped fasterfox for this tongue.gif, awsome thanks

glad to be of service. As long as you have a half way decent machine, it should make a noticeable difference without the need of an extra extension.
Flash
great tweaks bangbang, works extremely well. Thankss
gadean
wow, this is great! Thanks, bangbang!
IceDogg
bangbang023, I too have tried your settings and they work great for me as well. I run the Branch nightly builds.. just for info. Thanks!

I had mine tweaked already, but thought I would try bangbang023's and was glad I did.
Pink Floyd
hey I had some other lines also that I'd like to ask if they are now obsolete or not

user_pref("browser.turbo.enabled", true);
user_pref("network.dns.disableIPv6", true); <--- increases speed when disabled?
user_pref("network.enableIDN", false);
user_pref("browser.tabs.showSingleWindowModePrefs", true);

user_pref("content.switch.threshold", 750000); <--- I have it at 750,000 instead of 200,000. What does that line do?
user_pref("extensions.dss.enabled", 1); <--- This doesnt work at all. I dont remember where I got the info to put that line (which is dynamic skin switch)
user_pref("browser.sessionhistory.max_total_viewers", 5); <-- to load from cache?
xpgeek
Quote - (Pink Floyd @ Jun 27 2006, 07:41) [snapback]587645198[/snapback]

hey I had some other lines also that I'd like to ask if they are now obsolete or not

user_pref("browser.turbo.enabled", true);

Completely obsolete, does nothing.
"Pref removed (obsolete). Previously:
Determined whether to load browser in "Turbo Mode" (aka "quick launch") (Windows/Mozilla Suite only)
True: Load some Mozilla code into memory on Windows boot
False (default): Load browser normally on program execution"
Quote -
user_pref("network.dns.disableIPv6", true); <--- increases speed when disabled?

Up to you, I've found it does increase page loading times a little, but it kind of messed up large file download speeds for me on some sites.
Quote -
user_pref("network.enableIDN", false);

"Determines whether to use IDN (International Domain Name) support in the browser"
No reason to turn it off really. Was a security issue for about a week til they fixed it.
Quote -
user_pref("browser.tabs.showSingleWindowModePrefs", true);

"Determines whether to display "Single Window Mode" settings in preferences.
True: Show "Force links that open in new windows to open in..." options under "Tools → Options → Advanced → Tabbed Browsing"
False (default): Opposite of above"
Pretty sure they're shown by default now in 1.5
Quote -
user_pref("content.switch.threshold", 750000); <--- I have it at 750,000 instead of 200,000. What does that line do?

"Determines how long to wait for user input (mouse movement or typing) in microseconds until switching to low frequency interrupt mode. (High frequency interrupt mode provides better UI responsiveness at the expense of load time.) Default value is 750000."
Quote -
user_pref("extensions.dss.enabled", 1); <--- This doesnt work at all. I dont remember where I got the info to put that line (which is dynamic skin switch)

"True: Enable dynamic skin (theme) switching.
False (default): Require a browser restart when switching themes.
Note: Switching themes dynamically is buggy"
Quote -
user_pref("browser.sessionhistory.max_total_viewers", 5); <-- to load from cache?

"Determines the maximum number of content viewers to cache for "bfcache" (fast back/forward navigation). Default value is -1 (calculate based on available memory). All values less than 0 are equivalent.
Note: Firefox 1.5 and above only."

Info from here :
http://kb.mozillazine.org/Firefox_:_FAQs_:...:config_Entries
IceDogg
Quote - (Pink Floyd @ Jun 27 2006, 06:41) [snapback]587645198[/snapback]

hey I had some other lines also that I'd like to ask if they are now obsolete or not

user_pref("browser.turbo.enabled", true);
user_pref("network.dns.disableIPv6", true); <--- increases speed when disabled?
user_pref("network.enableIDN", false);
user_pref("browser.tabs.showSingleWindowModePrefs", true);

user_pref("content.switch.threshold", 750000); <--- I have it at 750,000 instead of 200,000. What does that line do?
user_pref("extensions.dss.enabled", 1); <--- This doesnt work at all. I dont remember where I got the info to put that line (which is dynamic skin switch)
user_pref("browser.sessionhistory.max_total_viewers", 5); <-- to load from cache?

Explains each about:config setting
The Turbo one was for faster launching Firefox nothing to do with browsing, and it's obsolete.

The IPv6 setting Determines whether to perform IPv6 name lookups, so if it's disabled I'm sure it will give a slight performance improvement.

user_pref("network.enableIDN", false); Determines whether to use IDN (International Domain Name) support in the browser. So again you might see a slight improvement. And I think this was used as a security fix work around at one time. Meaning it plug a security hole...but that's since been fixed.

user_pref("browser.tabs.showSingleWindowModePrefs", true);Determines whether to display "Single Window Mode" settings in preferences. Nothing to do with speed at all.

user_pref("content.switch.threshold", 750000);Determines how long to wait for user input (mouse movement or typing) in microseconds until switching to low frequency interrupt mode. (High frequency interrupt mode provides better UI responsiveness at the expense of load time.) Default value is 750000. So the highter the threshold the better performance, I guess? This one is a little over my head.. but that's what it looks like.

user_pref("extensions.dss.enabled", 1); You are correct about that one, it's a dynamic skin switch, and they say it's buggy.. on that page.

user_pref("browser.sessionhistory.max_total_viewers", 5);Determines the maximum number of content viewers to cache for "bfcache" (fast back/forward navigation). Default value is -1 (calculate based on available memory). All values less than 0 are equivalent.
Note: Firefox 1.5 and above only. Supersedes browser.sessionhistory.max_viewers. This has to do with the fast back/forward feature as mentioned above..and btw has been said to cause high memory usage. This is what the developer was trying to explain and everyone jumped on the saying.. "high memory usage in Firefox is a feature" big joke to some anti-Firefox folks.

Most of these will give you very little speed boost, if any. IMHO
bman
Quote -
Wave' date='Jun 19 2006, 01:18' post='587618900']
FasterFox works well enough for me smile.gif


Yea same here, I don't need to tweak anything
Pink Floyd
thanks for your answers and link to the info guys thumbs_up.gif
IceDogg
NP. I swear xpgeek's post wasn't there when I was done posting. I know it says his was before mine. But it didn't show up when mine was there.. weird. Almost a dupe post..sorry bout that.
1759
Thanks, those tweaks have seemed to speed up FF a bit, but I still seeing myself using Opera 9 most of the time. Only if FF was as fast as Opera (overall) and supported page zooming (coming in 2.0, but it seems like a ways off).
gaurav
Nice tweaks, I already read them at mozillazine forums, they're really helpful.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.