<?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: Rajat Sinha</title>
    <description>The latest articles on DEV Community by Rajat Sinha (@rajatsinhamonk).</description>
    <link>https://dev.to/rajatsinhamonk</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%2F2896826%2Fb17991fc-969c-4e50-9d15-2512dccf6959.png</url>
      <title>DEV Community: Rajat Sinha</title>
      <link>https://dev.to/rajatsinhamonk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rajatsinhamonk"/>
    <language>en</language>
    <item>
      <title>preconnect vs dns-prefetch: Resource hints for page speed</title>
      <dc:creator>Rajat Sinha</dc:creator>
      <pubDate>Mon, 24 Feb 2025 17:32:29 +0000</pubDate>
      <link>https://dev.to/rajatsinhamonk/preconnect-vs-dns-prefetch-resource-hints-for-page-speed-mhm</link>
      <guid>https://dev.to/rajatsinhamonk/preconnect-vs-dns-prefetch-resource-hints-for-page-speed-mhm</guid>
      <description>&lt;p&gt;Using &lt;code&gt;dns-prefetch&lt;/code&gt; prompts the browser to look up a domain's IP address ahead of time, so it’s ready when resources from that domain need to be downloaded. &lt;/p&gt;

&lt;p&gt;Meanwhile, &lt;code&gt;preconnect&lt;/code&gt; directs the browser to establish a connection to a given origin before any resources from that origin are requested. &lt;/p&gt;

&lt;p&gt;By proactively connecting to important third-party domains, you can shave off 100–500 milliseconds of load time. &lt;/p&gt;

&lt;p&gt;Although these savings might appear minor, they can meaningfully enhance the user experience.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqav2urph6ovaz6plln6b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqav2urph6ovaz6plln6b.png" alt="preconnect vs dns prefetch - ThePetNest" width="800" height="528"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Because &lt;code&gt;dns-prefetch&lt;/code&gt; has slightly different browser support than &lt;code&gt;preconnect&lt;/code&gt;, it can act as a fallback in environments where &lt;code&gt;preconnect&lt;/code&gt; isn't yet supported.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4djxe1n4e27xfdxbvimb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4djxe1n4e27xfdxbvimb.png" alt="preconnect vs dns prefetch(Page Speed) - ThePetNest" width="800" height="469"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Preconnect Browser Support&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg416c48t5r26ac0igttf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg416c48t5r26ac0igttf.png" alt="Preconnect - ThePetNest" width="800" height="176"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prefetch Browser Support&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fomrys4zcn25foy6iulgn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fomrys4zcn25foy6iulgn.png" alt="Prefetch - ThePetNest" width="800" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Feel free to checkout the implementation on &lt;a href="https://thepetnest.com/" rel="noopener noreferrer"&gt;ThePetNest&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

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