Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 [GUIDE] Firefox Speed Tweak

views
     
TSfariz
post Sep 13 2004, 09:41 AM, updated 19y ago

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
The majority of the information comes from this excellent thread over at the MozillaZine Forum.

First, install ChromEdit or ChromEdit Plus (for Firefox 2) extension. It make it easier to edit user files.

Now, run Firefox, go to Tools > Edit User Files. For Firefox 2, Tools > ChromEdit Plus > ChromEdit

Click user.js tab.

Insert the following texts based on your PC speed and internet connection.

Common to all configurations

These are the settings that seem to be common to all configuration files regardless of connection speed or computer speed with a couple of additions - plugin paths can be found with about:plugins and the bookmark menu delay is turned off.
CODE
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 8);
user_pref("content.notify.backoffcount", 5);
user_pref("plugin.expose_full_path", true);
user_pref("ui.submenuDelay", 0);


Fast Computer Fast Connection
CODE
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("browser.cache.memory.capacity", 65536);


A couple settings of note - Firefox is allocated 4096 KB of memory by default and in this configuration we give it roughly 65MB as denoted by the last line. This can be changed according to what is used.

Fast Computer, Slower Connection

This configuration is more suited to people without ultra fast connections. We are not talking about dial up connections but slower DSL / Cable connections.
CODE
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);


Fast Computer, Slow Connection
CODE
user_pref("browser.xul.error_pages.enabled", true);
user_pref("content.interrupt.parsing", true);
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.maxtextrun", 8191);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
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("nglayout.initialpaint.delay", 0);
user_pref("browser.cache.memory.capacity", 65536);


Slow Computer, Fast Connection
CODE
user_pref("content.max.tokenizing.time", 3000000);
user_pref("content.notify.backoffcount", 5);
user_pref("content.notify.interval", 1000000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 1000000);
user_pref("content.maxtextrun", 4095);
user_pref("nglayout.initialpaint.delay", 1000);
user_pref("network.http.max-connections", 48);
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("dom.disable_window_status_change", true);


One of the changes made for this particular configuration is the final line where the status bar is disabled for changing web pages to save processor time.

Slow Computer, Slow Connection

We have entered the doldrums of the dial-up user

CODE
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 750000);
user_pref("nglayout.initialpaint.delay", 750);
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("dom.disable_window_status_change", true);


Click Save and restart Firefox

Happy surfing..

-------------------------------------------------------

another speed tweak..

Open Firefox.. type about:config

look for network.dns.disableIPv6

Double click to toggle it to 'true' and then restart Firefox. You should notice a speed increase, page to page.

This tweak disabe IPv6 in Firefox, because most if not all of the web is still using IPv4. IPv4 and v6 are internet protocols... how the data is transferred... v4 is the standard now and v6 is slowly being implemented around the world... it wont come into full swing until 2008-2010 sadly... it's a huge infrastructure change, but the benefits will be great.

Source

This post has been edited by fariz: Feb 6 2007, 10:55 AM
c9
post Sep 13 2004, 02:46 PM

Look at all my stars!!
Group Icon
Elite
5,824 posts

Joined: Jan 2003
From: Damansara Perdana


I got this error, I follow ur guide and copy the Fast computer and Fast connection. Can u help me?

QUOTE
Mail Error!

Could not send the email
Failed at 'mail' command



TSfariz
post Sep 13 2004, 03:17 PM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
try other config, 48 is abit too high..32 or 20
TSfariz
post Sep 13 2004, 07:34 PM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
QUOTE (psylocke @ Sep 13 2004, 07:30 PM)
ace, the Speed tweaks that i got from you in DC++, its the same thing right? unsure.gif

yes, it is the same.. but feel free to compare and add what missing..

this is my setting:
CODE
user_pref("browser.cache.memory.capacity", 65536);
user_pref("browser.cache.disk_cache_ssl", true);
user_pref("plugin.expose_full_path", true);
user_pref("content.interrupt.parsing", true);
user_pref("content.notify.backoffcount", 5);
user_pref("content.max.tokenizing.time", 2250000);
user_pref("content.notify.interval", 750000);
user_pref("content.notify.ontimer", true);
user_pref("content.switch.threshold", 250000);
user_pref("content.maxtextrun", 8191);
user_pref("keyword.URL", "http://google.com/search?btnG=Google+Search&q=");
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 4);
user_pref("network.http.pipelining.firstrequest", true);
user_pref("network.http.max-connections", 20);
user_pref("network.http.max-connections-per-server", 20);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 12);
user_pref("nglayout.initialpaint.delay", 100);
user_pref("network.dnsCacheExpiration", 360);
user_pref("network.dnsCacheEntries", 100);
user_pref("network.ftp.idleConnectionTimeout", 60);
user_pref("network.http.keep-alive.timeout", 30);
user_pref("network.http.request.max-start-delay", 5);
user_pref("network.http.connect.timeout", 30);
user_pref("ui.submenuDelay", 300);
user_pref("browser.cache.disk.parent_directory","E:\\Temp\Firefox");
user_pref("advanced.system.supportDDEExec", false);
user_pref("browser.chrome.site_icons", false);
user_pref("browser.chrome.favicons", false);
user_pref("browser.enable_automatic_image_resizing", false);
user_pref("browser.display.show_image_placeholders", false);
user_pref("browser.urlbar.clickSelectsAll", true);
user_pref("browser.xul.error_pages.enabled", true);
user_pref("dom.allow_scripts_to_close_windows", false);
user_pref("dom.disable_image_src_set", false);
user_pref("dom.disable_open_click_delay", 200);
user_pref("dom.disable_open_during_load", true);
user_pref("dom.disable_window_flip", true);
user_pref("dom.disable_window_move_resize", true);
user_pref("dom.disable_window_status_change", true);
// Stop reusing active windows:
user_pref("advanced.system.supportDDEExec", true);
// More DOM/JavaScript options
// Make sure all pop-up windows are resizable:
user_pref("dom.disable_window_open_feature.resizable", true);
// Make sure all pop-up windows are minimizable:
user_pref("dom.disable_window_open_feature.minimizable", true);
// Always display the menu in pop-up windows:
user_pref("dom.disable_window_open_feature.menubar", false);
// Always display the Navigation Toolbar in pop-up windows:
user_pref("dom.disable_window_open_feature.location", false);
// Always display the scrollbar in pop-up windows:
user_pref("dom.disable_window_open_feature.scrollbars", false);
// Put an end to blinking text!
user_pref("browser.blink_allowed", false);

c9
post Sep 13 2004, 07:45 PM

Look at all my stars!!
Group Icon
Elite
5,824 posts

Joined: Jan 2003
From: Damansara Perdana


Wuts included in ur code?
TSfariz
post Sep 13 2004, 07:47 PM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
pop-up control, browser setting, menu speed, speed tweak
TSfariz
post Sep 15 2004, 06:56 AM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
QUOTE (mikelee1609 @ Sep 15 2004, 05:25 AM)
It seems that chrome edit doesn't support firefox 1.0 sad.gif

temporary solution:

type about:config in addressbar
find app.extensions.version aand change value to 0.9
now all 0.9 extension will works on PR release.
TSfariz
post Sep 24 2004, 04:50 PM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
ok, I posted again my setting with descriptions
CODE

// Browser Cache Memory Capacity
user_pref("browser.cache.memory.capacity", 65536);

// Cache pages served over a secure connection:
user_pref("browser.cache.disk_cache_ssl", true);

// Show full path to plugins in about:plugins
user_pref("plugin.expose_full_path", true);

// Rendering settings:
user_pref("content.interrupt.parsing", true);

// Time after which parsing is interrupted to return to the application's event loop
user_pref("content.max.tokenizing.time", 2250000);

// turn on timer-based reflow management
user_pref("content.notify.ontimer", true);

// sets the allowed time between reflows in microseconds
user_pref("content.notify.interval", 750000);

// set the number of reflows to do before waiting for the rest of the page to arrive
user_pref("content.notify.backoffcount", 5);

user_pref("content.switch.threshold", 250000);
user_pref("content.maxtextrun", 8191);

user_pref("keyword.URL", "http://google.com/search?btnG=Google+Search&q=");

// Enable pipelining:
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.maxrequests", 4);
user_pref("network.http.pipelining.firstrequest", true);

// Misc Performance Tweaks fast computer 512k connection
user_pref("network.http.max-connections", 20);
user_pref("network.http.max-connections-per-server", 20);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 12);
user_pref("network.dnsCacheExpiration", 360);
user_pref("network.dnsCacheEntries", 100);
user_pref("network.ftp.idleConnectionTimeout", 60);
user_pref("network.http.keep-alive.timeout", 30);
user_pref("network.http.request.max-start-delay", 5);
user_pref("network.http.connect.timeout", 30);

// This one makes a huge difference. Last value in milliseconds (default is 250)
user_pref("nglayout.initialpaint.delay", 0);

// Menu speed
user_pref("ui.submenuDelay", 300);

// Firefox custom cache folder:
user_pref("browser.cache.disk.parent_directory","E:\\Temp\Firefox");

//Disable bookmark icons from websites
user_pref("browser.chrome.site_icons", false);
user_pref("browser.chrome.favicons", false);

// Disable automatic image resizing
user_pref("browser.enable_automatic_image_resizing", false);

// Disable Image Placeholders
user_pref("browser.display.show_image_placeholders", false);

user_pref("browser.urlbar.clickSelectsAll", true);

// Instead of annoying error dialog messages, display pages:
user_pref("browser.xul.error_pages.enabled", true);

user_pref("advanced.system.supportDDEExec", false);

// Misc. firefox windows settings:
user_pref("dom.allow_scripts_to_close_windows", false);
user_pref("dom.disable_image_src_set", false);
user_pref("dom.disable_open_click_delay", 200);
user_pref("dom.disable_open_during_load", true);
user_pref("dom.disable_window_flip", true);
user_pref("dom.disable_window_move_resize", true);
user_pref("dom.disable_window_status_change", true);

// Stop reusing active windows:
user_pref("advanced.system.supportDDEExec", true);

// More DOM/JavaScript options
// Make sure all pop-up windows are resizable:
user_pref("dom.disable_window_open_feature.resizable", true);

// Make sure all pop-up windows are minimizable:
user_pref("dom.disable_window_open_feature.minimizable", true);

// Always display the menu in pop-up windows:
user_pref("dom.disable_window_open_feature.menubar", false);

// Always display the Navigation Toolbar in pop-up windows:
user_pref("dom.disable_window_open_feature.location", false);

// Always display the scrollbar in pop-up windows:
user_pref("dom.disable_window_open_feature.scrollbars", false);

// Put an end to blinking text!
user_pref("browser.blink_allowed", false);

samurai1337
post Oct 8 2004, 02:12 PM

@_@
Group Icon
VIP
11,594 posts

Joined: Jan 2003
From: Area 51

QUOTE(e_ti @ Oct 8 2004, 12:34 PM)
im using 2.4 gig p4 512mb n dialup
so i should use slow comp slow connection settings or slow com slow connection?
*
Fast Computer, Slow Connection
TSfariz
post Oct 14 2004, 04:30 PM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
QUOTE(sOuNdStOrM @ Oct 14 2004, 01:38 AM)
acedriver, my pc is AMD athlon xp 1.15GHz and using a LAN connection. Which category should i be put in? slow computer & slow connection? i try using the setting u used, but i don't notice any improvement in speed.

btw, how do i revert back to the default setting? i've deleted everything in the user.js but the setting seems still be there.
*
try Fast Computer Fast Connection

the revert back to default, delete prefs.js and user.js
TSfariz
post Oct 16 2004, 12:51 AM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
by default user.js is not there.. so chromedit will create it when you save it or you could create a text file and rename it to user.js, same thing
TSfariz
post Oct 18 2004, 05:39 AM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
chromedit does work with 0.10, try installing the latest one (v0.0.5.1.1)

or use this guide to make it compatible
wKkaY
post Oct 25 2004, 11:50 AM

misutā supākoru
Group Icon
VIP
6,008 posts

Joined: Jan 2003
QUOTE
user_pref("network.http.max-connections-per-server", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
eeps .. this is a big no no no. have some consideration for the webserver, as this will tax it quite a bit.
LcF
post Oct 28 2004, 03:58 AM

Getting Started
**
Junior Member
56 posts

Joined: Jan 2003
From: Malaysia


Try to get optimized build Firefox that suits your CPU at http://www.moox.ws/tech/mozilla/
samurai1337
post Nov 3 2004, 07:44 PM

@_@
Group Icon
VIP
11,594 posts

Joined: Jan 2003
From: Area 51

QUOTE(abubin @ Nov 3 2004, 06:51 PM)
good stuff..i used fast connection and fast PC on my 1.5mbps SDSL and works great!

Wonder what to use for home 384k/128k connection.
*
slower connection
Treepex
post Nov 15 2004, 07:16 PM

-
Group Icon
Elite
1,704 posts

Joined: Jan 2003
From: Klang
QUOTE(blitzdotcom @ Nov 15 2004, 05:25 PM)
Wow acedriver!! Your script rocks man!!  :respect:  :respect:
*
go 1st thread "see good good"
those "script" is not "created" by acedriver

o_o||
TSfariz
post Nov 17 2004, 12:30 PM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
another speed tweak..

Open Firefox.. type about:config

look for network.dns.disableIPv6

Double click to toggle it to 'true' and then restart Firefox. You should notice a speed increase, page to page.

This tweak disabe IPv6 in Firefox, because most if not all of the web is still using IPv4. IPv4 and v6 are internet protocols... how the data is transferred... v4 is the standard now and v6 is slowly being implemented around the world... it wont come into full swing until 2008-2010 sadly... it's a huge infrastructure change, but the benefits will be great.

Source
SUStheripper
post Dec 2 2004, 08:08 PM

Ping Pong Club!
Group Icon
VIP
6,682 posts

Joined: Jan 2003
From: Santiago Bernabeu, Madrid.




can i ask what's the real functions of these 2?

user_pref("nglayout.initialpaint.delay", 100);
user_pref("ui.submenuDelay", 300);

can i change the delays to 0? and will it give any significant improvement if i change that? thanx. smile.gif
TSfariz
post Dec 2 2004, 08:37 PM

Tan Sri F
Group Icon
VIP
16,825 posts

Joined: Jan 2003
From: Siberia
@theripper, both value can be zero
QUOTE
// This one makes a huge difference. Last value in milliseconds (default is 250)
user_pref("nglayout.initialpaint.delay", 0);

// Menu speed
user_pref("ui.submenuDelay", 300);

Treepex
post Dec 21 2004, 12:32 AM

-
Group Icon
Elite
1,704 posts

Joined: Jan 2003
From: Klang
QUOTE(MtV @ Dec 20 2004, 11:30 AM)
i mean i download the thing then restart then open up firefox i cant find the thing to mod the setting
*
you downloaded, but did you install it ?

Tools> Extensions
then drag the extension you have download into that small window

the restart your firefox, not computer

Tools> Edit User Files
then you will see your user.js section there

hope this will help

2 Pages  1 2 >Top
 

Change to:
| Lo-Fi Version
0.0192sec    0.76    5 queries    GZIP Disabled
Time is now: 18th December 2025 - 07:19 AM