What happens behind the scenes when we type www.google.com in a browser? (2015)

What happens behind the scenes when we type www.google.com in a browser? (2015)

After sending the request and headers, the web browser sends a single blank newline to the server indicating that the content of the request is done. After parsing the HTML, the web browser (and server) repeats this process for every resource (image, CSS, favicon.ico, etc) referenced by the HTML page, except instead of GET / HTTP/1.1 the request will be GET /$(URL relative to www.google.com) HTTP/1.1. Once the server supplies the resources (HTML, CSS, JS, images, etc.) to the browser it undergoes the below process:

Let’s start, with the simplest possible case: a plain HTML page with some text and a single image.

Source: github.com