<?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: Kunal Dubey</title>
    <description>The latest articles on DEV Community by Kunal Dubey (@eyeamkd).</description>
    <link>https://dev.to/eyeamkd</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F400048%2F2b3d63fe-99c7-4b99-9dfd-71515a28d592.jpeg</url>
      <title>DEV Community: Kunal Dubey</title>
      <link>https://dev.to/eyeamkd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eyeamkd"/>
    <language>en</language>
    <item>
      <title>How NOT to optimize your website</title>
      <dc:creator>Kunal Dubey</dc:creator>
      <pubDate>Tue, 05 Apr 2022 21:40:14 +0000</pubDate>
      <link>https://dev.to/eyeamkd/how-not-to-optimize-your-website-5h2g</link>
      <guid>https://dev.to/eyeamkd/how-not-to-optimize-your-website-5h2g</guid>
      <description>&lt;p&gt;_I make a change, add a huge-ass image on the home screen using it's "image link address", too lazy to download bRo and hit save, "localhost" appears to be load fine, and then I push it to production! _&lt;/p&gt;

&lt;p&gt;What we don't see is the face of the user, trying to access your site on a low-band 4G/3G network, which is stuck because of your third party image download. &lt;br&gt;
If you’re happy making your users frustrated, do follow the points below religiously..&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Always load the third party JS first! Especially, don't exclude/ remove the npm packages that you don't need. The more the merrier!!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Try not to divide your JS into chunks ( code-split ), The bigger the better!!&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;All the images/fonts that you use, SHOULD BE from Third party source, no chance in hell they're from  your origin. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The image that you let the user see first, should of the highest quality and size and should be loaded last. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Lazy Loading of imports and JS is for pussies, refrain using those. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you find a way, then load the HTML as the last thing to be loaded on to the screen everything else should come first. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DO NOT try using "preconnect" on any &amp;lt; link &amp;gt; tags and avoid going through Script loading strategies from low-grade frameworks like Next.js. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Always remember that higher FCP ( First Contentful Paint ) the better, which means the time taken for your website to show the first content, above steps such as third party scripts loading will help you achieve this feat. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The longer FID ( First Input Delay ) the better, as you'd make the user wait on your page for the longest time possible. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The higher CLS ( Cumulatieve Layout Shift ) the better as the user gets mesmerized when layout keeps changing as the content keeps on showing up, our third party image assets can be leverage here.  &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That's all folks! The Web World is yours to rule now!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>css</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
