From entering the URL in the browser to loading the page
The general meaning is: if there is a cache, it will be displayed directly. Otherwise, find the IP address on the local machine, find the IP address through DNS, and return it to the browser. Then, the browser communicates with the server over TCP, and the server returns data or error messages. Then render the data to the browser.
For example, if I want to open facebook.com, it is worth mentioning two points: one is that the web page may be redirected, such as from http://facebook.com to http://www.facebook.com. Second, the http GET request sent contains cookies.
You can customize the loading sequence of page images, audios, and videos to Increase the initial loading speed.
In addition, you can also consider the involve of the CDN (content delivery network ).
What are the advantages and disadvantages of using CDN?
The disadvantages may be that it costs money, and it adds a bit of complexity to your deployment procedures.
The main advantage is an increase in the speed with which the content is delivered to the users.
When en to use CDN?