NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle+78 views

Что происходит после ввода `https://yandex.ru` в браузере и нажатия Enter?

Practice

AI answer

In simplified terms, a browser goes through several steps:

  1. It parses the address: the https scheme, the yandex.ru domain, and any path and parameters. It checks the cache and rules such as HSTS.
  2. It looks up the domain’s IP address via DNS if a suitable record is not already in the cache.
  3. It establishes a connection to the server: usually TCP, or QUIC for HTTP/3. For HTTPS, it performs a TLS handshake and verifies the server’s certificate.
  4. It sends an HTTP request, such as GET /, with headers and cookies. If a proxy or redirects are involved, those are handled as well.
  5. It receives a response. For HTML, the browser parses the document, loads linked resources—CSS, JavaScript, images, and fonts—and builds the DOM and CSSOM.
  6. It calculates styles and layout, renders the page, and executes JavaScript. Scripts can modify the DOM and trigger additional network requests.

In practice, DNS lookups, connections, and resources may come from the cache, and many operations run in parallel.