futuretrack5 http://www.futuretrack5.com/ en-us 40 HowTo: Decrease Page Load Times <p>Whilst working on the weekend, I found that the number of simultaneous requests I could make to a web server was limited by my web browser &#8211; severely.</p> <p>I have one Linux server, performing port forwarding for our overseas offices (mostly so they can use Remote Desktop).</p> <p>I had developed a <span class="caps">PHP</span> page to display whether a connection could be opened on each of the forwarded ports. A connection attempt would be tried against each port sequentially, however this caused the page to load very slowly &#8211; especially since some requests were making a round trip from the UK to Australia.</p> <p>On the weekend I upgraded the page to use a very small <span class="caps">AJAX</span> library I wrote. Although the page loaded quickly, the statuses returned from each <span class="caps">AJAX</span> request were slow.</p> <p>Although the browser settings I ended up tweaking will not make the aforementioned page load faster (unless all users make these changes), it does make web pages load faster in general.</p> <div><b>Firefox</b></div> <ul><li>Enter into the address bar:<br />about:config</li> <li>Then filter on the string:<br />connections</li> <li>Change the value of network.http.max-connections to 64</li> <li>Change the value of network.http.max-connections-per-server to 32</li> <li style="text-align:left;">Change the value of network.http.max-persistent-connections-per-server to 8</li></ul> <div><b>Microsoft Internet Explorer</b></div> <ul><li>Create a new text file and save it with a .reg extension.</li> <li>Paste into this file the following text:</li></ul> <pre style="font-size:80%;">Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] “MaxConnectionsPerServer”=dword:00000010 “MaxConnectionsPer1_0Server”=dword:0000010</pre> <ul><li>Save the reg file.</li> <li>Double click on it to import the updated settings.</li></ul> <p>Please note that a logoff or reboot may be required after altering the registry. If you are unsure about modifying your registry, please Google these settings first as I will not be held liable for any adverse consequences for these instructions.</p> <p>In retrospect, I remember using a Firefox extension called <a href="http://fasterfox.mozdev.org/" target="_blank">Fasterfox</a> in the past, however I would rather keep my extension list short.</p> <p>Long ago, Mosaic and Netscape allowed users to configure the maximum number of connections. Here is a screenshot I took for you old timers ;-)</p> <a href="http://futuretrack5.com/files/mosaic_netscape_1024x768.gif" target="_blank"><img src="http://futuretrack5.com/files/mosaic_netscape_1024x768.gif" width="320" height="240" alt="Click to zoom in" title="Click to zoom in" border="0" /></a> Mon, 02 Jul 2007 09:54:00 +0000 urn:uuid:304baa6f-39a0-4446-b4dc-fa3c8c3dfd3d Mike Skinner http://www.futuretrack5.com/articles/2007/07/02/howto-decrease-page-load-times http://www.futuretrack5.com/articles/trackback/300