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:
- Are the requests sent one after another or all in parallel?
- 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?
- Does the browser create multiple TCP connections for the requests?
Aucun commentaire:
Enregistrer un commentaire