K-Meleon

KMeleonWiki > Documentation > TipsAndTricks > PageSpeed



You can add the following settings to your User.js file to decrease in your webpage load time. You can find user.js at K-Meleon > Profiles > your.profile > user.js and can open it with any text editor. There may be no settings in the file by default. Lines beginning with /* and ending with */ are comments or brief explanations of each setting. They can be copied with the lines of code.


/* 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", 100);

/* SET THE NUMBER OF REFLOWS TO DO */
user_pref("content.notify.backoffcount", 200);

/* ENABLE IMPROVED PIPELINING */
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.firstrequest", true); /* Default is false */
user_pref("network.http.pipelining.maxrequests", 100); /* Default is 4 */

/* INCREASE MULTI-THREADED DOWNLOAD PERFORMANCE */
user_pref("network.http.max-connections", 60); /* Default is 24 */
user_pref("network.http.max-connections-per-server", 32); /* Default is 8 */
user_pref("network.http.max-persistent-connections-per-proxy", 16); /* Default is 4 */
user_pref("network.http.max-persistent-connections-per-server", 8); /* Default is 2 */

/* REMOVE PAINT DELAY WHEN LOADING */
user_pref("nglayout.initialpaint.delay", 0); /* Default is 250 */


Added by Marc

I've also found that the following preferences can solve many problems with servers, and/or proxies that don't support keep-alive connections.
Note: KM' behavior is also weird (from what I saw with some tests I've done) with "keep-alive" set to true. It seems to limit itself to a small amount of simultaneous connections (around 4, and sometimes only a maximum of 2 per server) whatever the values of "max-connections". I don't know if this is a Gecko bug, an intended feature, or a behavior limited to this particular version of Gecko (as of 0.8.2).

user_pref("network.http.keep-alive", false);
user_pref("network.http.proxy.keep-alive", false);

Use them with the preferences above or at least with:

user_pref("network.http.max-connections", 40);  /* or more */
user_pref("network.http.max-connections-per-server", 20);  /* or more */


Added by John

To make it easier to enable or disable this tweak, I took the liberty to create a macro for this tweak.
You can find the macro here: Page Speed (for K-Meleon prior to 1.1), KmmSpeedUp (for K-Meleon 1.1)


References

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.