Pergunta de entrevista da empresa Testsigma

Web Fundamentals - How a URL Loads When we type www.google.com in the browser, what happens step by step?

Resposta da entrevista

Sigiloso

26 de abr. de 2025

DNS Resolution: The browser checks the DNS cache or asks a DNS server to translate www.google.com to an IP address. TCP Connection: A TCP connection is established with the server's IP address using the three-way handshake. HTTP Request: The browser sends an HTTP request to the server asking for the webpage. Server Response: The server responds with HTML, CSS, JavaScript files, etc. Rendering Engine: The browser parses the HTML, builds the DOM Tree, CSSOM Tree, and then renders the page on screen. JavaScript Execution: JavaScript is executed according to its loading strategy (normal, async, or defer).