Forum Moderators: open
When a web page is loading in a browser, how does it download the components of the web page? Does it download images and text separately or in parallel? Does this behavior differ between browsers?
Can anyone point to any link or tutorial on browser behavior?
So for example if you have a page, with 15 images, 1 css and 2 scripts, you will need 19 connections. Many of these will happen in parallel, although there is a limit of the maximum number of connections the browser will make to the same server at one time.
It's an arbitrary number hard coded into each browser that you can change - and probably should, especially if you have a high bandwidth connection.
But should you? Yes, increasing the the max-connections could improve your browsing experience, but you are also putting a much higher load on the server. The server will/should limit the number of concurrent connections per user/ip - it needs to guard against denial-of-service attacks for instance - and I believe this could result in "Access Denied" errors if you are trying to swamp it with connections? So may be tread with caution?
network.http.max-connections ......................... 24
network.http.max-connections-per-server .............. 8
network.http.max-persistent-connections-per-proxy .... 4
network.http.max-persistent-connections-per-server ... 2
my network.http.max-persistent-connections-per-server is set to 2 for ff2.
Just to quote from MozillaZine - Network.http.max-persistent-connections-per-server [kb.mozillazine.org], "HTTP keep-alive connections can be re-used for multiple requests, as opposed to non-keep-alive connections, which are limited to one request.". Presumably then most connections are not 'persistent'? Which ones are; which ones aren't?