samedi 17 août 2019

How does a browse request files in a web page while its loading?

For example, I visit a website(e.g., www.example.com) in which there are multiple images, css & javascript files, assuming all of which are from the same server.

After the initial web page request, there should be subsequent GET requests for all the images/css/js files. Now I just wonder in a typical browser nowadays(e.g., Chrome), how the requests would be dispatched/sent, which leads to the questions:

  1. Are the requests sent one after another or all in parallel?
  2. If the the requests were sent one after another, does the browser wait to receive the response of a previous request before it sends the next request?
  3. Does the browser create multiple TCP connections for the requests?



Aucun commentaire:

Enregistrer un commentaire