Websites can be as simple as some words on a page, or as complex as having hundreds or thousands of images and products in an online store. But user expectations don’t change. Visitors to your site don’t want to wait more than a few seconds for a page to finish loading, and they don’t have unlimited bandwidth to spend downloading your content. When designing any website, optimization is a must, but first we need to understand a little bit about how the internet works.
When you visit a website, your browser is actually requesting a file (or a number of files) from another computer somewhere on the internet. This other computer is running a program that accepts such requests, and provides a response to you (hopefully along with the file you requested). The program listening for and responding to your requests is called a web server.
Other servers listen for other types of requests. are many types of servers, and many different functions each performs.Think of it as an ATM machine. You stick your card in and press some numbers, and it provides information about your bank account. Pressing more numbers, and it may even dispense some cash. Basically, it accepts an input, and produces an output.
TheWhen a user types the name of a website into the browser,
A DNS lookup is performed
DNS, or domain name system, is basically a large address book. It translates easy to remember, human-recognizable words (e.g. example.com) into the addressing system used by computers (e.g. 172.23.14.109). Whenever you visit a website, the browser looks up the address on your computer and makes a request to that address for the contents of the website.
But what happens when you type in a new website you’ve never been to before? It has to look up the address from a different computer higher up in the chain. (And if that computer doesn’t have it, it has look up the address from yet another computer.)