<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sunny Kumar</title>
    <description>The latest articles on DEV Community by Sunny Kumar (@sunny_kumar_d236a650ab33a).</description>
    <link>https://dev.to/sunny_kumar_d236a650ab33a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2029901%2F8f189348-c9d4-484b-816b-e0b7e9dc15a3.jpg</url>
      <title>DEV Community: Sunny Kumar</title>
      <link>https://dev.to/sunny_kumar_d236a650ab33a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sunny_kumar_d236a650ab33a"/>
    <language>en</language>
    <item>
      <title>Mastering the Critical Rendering Path: Optimizing Web Performance from Request to Paint.</title>
      <dc:creator>Sunny Kumar</dc:creator>
      <pubDate>Thu, 05 Sep 2024 08:32:43 +0000</pubDate>
      <link>https://dev.to/sunny_kumar_d236a650ab33a/mastering-the-critical-rendering-path-optimizing-web-performance-from-request-to-paint-38c0</link>
      <guid>https://dev.to/sunny_kumar_d236a650ab33a/mastering-the-critical-rendering-path-optimizing-web-performance-from-request-to-paint-38c0</guid>
      <description>&lt;p&gt;After receiving the HTML response, the browser follows a sequence of steps to render the page:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Loading: The HTML, CSS (render-blocking), and JavaScript (parse-blocking) resources are fetched.&lt;/li&gt;
&lt;li&gt;Scripting: The HTML is parsed into the DOM (Document Object Model), and CSS is parsed to create the CSSOM (CSS Object Model).&lt;/li&gt;
&lt;li&gt;Rendering: The DOM and CSSOM are combined to generate the Render Tree.
4 . Painting: After the Render Tree is built, the layout is calculated, and the page is painted on the screen.&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;When the page request is made, the browser receives HTML, CSS, and JavaScript. CSS blocks rendering until fully loaded (render-blocking), and JavaScript blocks parsing until it’s executed (parse-blocking).&lt;/li&gt;
&lt;li&gt;After building the DOM from HTML and the CSSOM from CSS, JavaScript is executed.&lt;/li&gt;
&lt;li&gt;The DOM and CSSOM are merged to create the Render Tree, which is used to calculate the layout.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4rdw2yzwry9jaov2hyoe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4rdw2yzwry9jaov2hyoe.png" alt="Image description" width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Finally, the browser paints the content on the screen.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9mgs3tdnlw271ij9qvyn.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9mgs3tdnlw271ij9qvyn.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
