<?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>Forem: Raj rana</title>
    <description>The latest articles on Forem by Raj rana (@missionraj).</description>
    <link>https://forem.com/missionraj</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%2F492697%2F23cec0aa-0c92-4d7e-b04a-acc82481f73a.jpeg</url>
      <title>Forem: Raj rana</title>
      <link>https://forem.com/missionraj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/missionraj"/>
    <language>en</language>
    <item>
      <title>How to lazy load image with html</title>
      <dc:creator>Raj rana</dc:creator>
      <pubDate>Mon, 12 Jun 2023 16:03:34 +0000</pubDate>
      <link>https://forem.com/missionraj/how-to-lazy-load-image-with-html-581h</link>
      <guid>https://forem.com/missionraj/how-to-lazy-load-image-with-html-581h</guid>
      <description>&lt;p&gt;there is loading attribute provided by &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; tag. &lt;/p&gt;

&lt;p&gt;which is used to load the offscreen images lazy&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="image1.jpg" alt="image1" style="width:100%"&amp;gt;
&amp;lt;img src="image2.jpg" alt="image2" style="width:100%"&amp;gt;

&amp;lt;!-- off-screen images --&amp;gt;
&amp;lt;img src="image3.jpg" alt="image3" style="width:100%" loading="lazy"&amp;gt;
&amp;lt;img src="image4.jpg" alt="image4" style="width:100%" loading="lazy"&amp;gt;
&amp;lt;img src="image5.jpg" alt="image5" style="width:100%" loading="lazy"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;you should only add loading lazy to images which are not immediately available to screen means user will later on scroll the image will be visible &lt;/p&gt;

&lt;p&gt;note: there are also other options but this one is simple I didn't about it till today&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>html</category>
      <category>development</category>
    </item>
  </channel>
</rss>
