From request to response - how web works? Let's have a look at a high-level overview.
At a high level, the internet is browsers making requests to servers and getting responses back. Each request contains headers that tell the server how to respond. The server responds with a response and a content-type, which tells the browser what to do with the response.
If the content-type is text/html, then the browser knows to treat the response like an html file. If the content-type is image/jpeg, then the browser knows it's a jpeg file.
This video covers how the browser parses the html document, and ways that you can improve the loading of your webpage with things like concatenating and minifying assets like javascript, css, etc.
#HowWebWorks #HowWebsiteWorks #CodingHacks