🔧 Programmierung5 Useful Python Scripts to Automate CSV Processing(10.09.2026 um 14:00 Uhr)
🔧 Programmierung5 Python Techniques for Efficient Resource Orchestration(11.09.2026 um 14:00 Uhr)
🔧 ProgrammierungFrom Spaghetti Code to Clean Python: A Beginner’s Guide(11.09.2026 um 16:00 Uhr)
🔧 ProgrammierungText Watermarking in Python: Catch Whoever Copies Your Writing(06.09.2026 um 16:00 Uhr)
🔧 ProgrammierungWhy Most Multi-Agent Systems Fail Even When Evaluation Passes(07.09.2026 um 14:00 Uhr)
🔧 ProgrammierungA Beginner’s Guide to World Models(08.09.2026 um 19:27 Uhr)
🔧 Programmierung7 Async Patterns for Running Agents Concurrently in Python(11.08.2026 um 14:00 Uhr)
🔧 ProgrammierungManaging Small Context Windows in Language Models(18.08.2026 um 14:00 Uhr)
🔧 Programmierung5 Useful Python Scripts to Automate CSV Processing(10.09.2026 um 14:00 Uhr)
🔧 Programmierung5 Python Techniques for Efficient Resource Orchestration(11.09.2026 um 14:00 Uhr)
🔧 ProgrammierungFrom Spaghetti Code to Clean Python: A Beginner’s Guide(11.09.2026 um 16:00 Uhr)
🔧 ProgrammierungText Watermarking in Python: Catch Whoever Copies Your Writing(06.09.2026 um 16:00 Uhr)
🔧 ProgrammierungWhy Most Multi-Agent Systems Fail Even When Evaluation Passes(07.09.2026 um 14:00 Uhr)
🔧 ProgrammierungA Beginner’s Guide to World Models(08.09.2026 um 19:27 Uhr)
🔧 Programmierung7 Async Patterns for Running Agents Concurrently in Python(11.08.2026 um 14:00 Uhr)
🔧 ProgrammierungManaging Small Context Windows in Language Models(18.08.2026 um 14:00 Uhr)

🔧 Programmierung 🕛 vor 5 Monaten 4 Min Lesezeit
0

How a Browser Renders a Webpage — And Where React, CSR, and SSR Fit In

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

When we type a URL in the browser and press Enter, a lot happens behind the scenes before the webpage appears on the screen. Understanding this process is important for frontend developers because it explains why some websites load instantly while others show a blank screen first.



In this article, we’ll walk through:




  • How a browser processes a request

  • How the UI is rendered

  • Where React, Client-Side Rendering (CSR), and Server-Side Rendering (SSR) come into play









1. The Request Process



When a user enters a URL like:




CODE
https://example.com






the browser performs several steps.






Step 1: Check Cache



The browser first checks whether the website resources are already stored locally in cache.






Step 2: DNS Lookup



If not found, the browser asks the Domain Name System to convert the domain name into an IP address.



Example:




CODE
example.com → 93.184.216.34









Step 3: Establish Connection



The browser opens a connection with the server using Transmission Control Protocol.



If the website uses HTTPS, a secure connection is established using Transport Layer Security.






Step 4: Send HTTP Request



The browser sends a request like:




CODE
GET /index.html HTTP/1.1
Host: example.com












2. Server Response



The server sends back resources such as:




  • HTML

  • CSS

  • JavaScript

  • Images

  • Fonts



These resources are often sent in chunks (streams), meaning the browser starts processing them before the entire file finishes downloading.









3. HTML Parsing and DOM Creation



Once the browser receives HTML, it begins parsing it immediately.



The browser converts HTML elements into a tree structure called the Document Object Model.



Example HTML:




CODE
<body>
<h1>Products</h1>
<p>Item 1</p>
</body>






DOM structure:




CODE
body
├── h1
└── p






This structure allows JavaScript to access and modify elements dynamically.









4. CSS Parsing and CSSOM



When the browser encounters CSS files or <style> tags, it creates another structure called the CSS Object Model.



This maps selectors to their styles.



Example:




CODE
p {
color: blue;
}






The browser builds a tree of style rules and applies them to the DOM elements.









5. Render Tree Creation



The browser combines:




  • DOM

  • CSSOM



to create a Render Tree.



This tree contains only visible elements.



Elements excluded include:




  • <meta>

  • <head>

  • elements with display: none









6. Layout (Reflow)



Next, the browser calculates the position and size of each element.



It determines:




  • width and height

  • position on the X and Y axis

  • how elements flow on the page



This step ensures the UI fits the device viewport correctly.









7. Paint



Once layout is calculated, the browser fills visual details such as:




  • colors

  • borders

  • text

  • shadows

  • images



At this stage the page becomes visually complete.









8. Compositing



Some elements are rendered on separate layers, such as:




  • sticky headers

  • popups

  • animations

  • transformed elements



These layers are sent to the GPU to render efficiently.



This final step is called compositing.









9. Where JavaScript Fits In



When the browser encounters a script:




CODE
<script src="app.js"></script>






HTML parsing pauses, and the browser:




  1. downloads the JavaScript

  2. executes it

  3. resumes HTML parsing



This is why JavaScript can block page rendering.



To avoid blocking, developers use:




CODE
<script defer src="app.js"></script>
<script async src="analytics.js"></script>








  • async executes immediately after download


  • defer executes after HTML parsing finishes









10. Client-Side Rendering (CSR)



Many modern web apps built with React use Client-Side Rendering.



In CSR, the server sends minimal HTML:




CODE
<body>
<div id="root"></div>
<script src="main.js"></script>
</body>






The browser initially sees:




CODE
empty page






Then JavaScript runs and React builds the UI.



Example React code:




CODE
ReactDOM.createRoot(root).render(<App />)






React generates the DOM elements dynamically.






User Experience






CODE
page loads

blank screen

JavaScript loads

UI appears












11. Server-Side Rendering (SSR)



Frameworks like Next.js use Server-Side Rendering.



Instead of sending empty HTML, the server renders the React components and sends fully built HTML.



Example response:




CODE
<div id="root">
<h1>Products</h1>
<p>Item 1</p>
</div>






Now the browser displays content immediately.









12. Hydration



After SSR HTML loads, JavaScript still downloads.



React then attaches event handlers to the existing HTML.



This process is called Hydration.



Before hydration:




CODE
button visible but not clickable






After hydration:




CODE
button becomes interactive












CSR vs SSR Comparison

































Feature CSR SSR
Initial HTML Empty Fully rendered
First load Blank screen Content appears instantly
SEO Limited Better
Rendering location Browser Server





Understanding how the browser renders a webpage helps frontend developers:




  • optimize performance

  • avoid render-blocking issues

  • improve user experience

  • choose the right rendering strategy



CSR is great for highly interactive applications, while SSR improves initial load performance and SEO.



Modern frameworks like Next.js combine both approaches to deliver the best user experience.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
5 Useful Python Scripts to Automate CSV Processing
1 Quelle
5 Python Techniques for Efficient Resource Orchestration
1 Quelle
From Spaghetti Code to Clean Python: A Beginner’s Guide
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How a Browser Renders a Webpage — And Where React, CSR, and SSR Fit In

Thematisch verwandte Begriffe: Browser, Renders, Webpage, Where · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...