Home Largest Contentful Paint#1 element the text content fades Skip to main content

Largest Contentful Paint#1 element the text content fades




Caption: "Reflecting the fleeting essence of content in today's world."

THIS IS A BASIC CODE ADD UR THUMBNAIL IMAGE BASIC CODE 

HTML
<link as="image" href="https://insightssolver.blogspot.com/2024/01/image_400.webp" imagesrcset="https://insightssolver.blogspot.com/2024/01/image_400.webp 400w, https://insightssolver.blogspot.com/2024/01/image_800px.webp 800w" rel="preload">
and 
<!-- Image Address -->
<p>Image Address: <a href="https://site1.com/image_400.webp">https://site1.com/image_400.webp</a></p>

<!-- Image Name -->
<p>Image Name: Image_400.webp</p>

<!-- Preload Link -->
<link as="image" href="https://site1.com/image_400.webp" imagesrcset="https://site1.com/image_400.webp 400w, https://site1.com/image_800px.webp 800w" rel="preload">
and




 #1.

ADD THIS CODE BELOW THE <head> 

 every time we have to add thumbnail below the head

HTML4
<link as='image' href='https://insightssolver.blogspot.com/2024/01/image_400.webp' imagesrcset='https://insightssolver.blogspot.com/2024/01/image_400.webp 400w, https://insightssolver.blogspot.com/2024/01/image_800px.webp 800w' rel='preload'>
</link></head>
#2

search script post-share-buttons-bottom BELOW .post-outer


change property left to right in style

HTML5
}
.post-share-buttons-bottom{
float:left
#3
PASTE THIS code just above this  .post-outer .snippet-thumbnail{ (check it should be with
.post-outer .snippet-thumbnail{
-webkit-box-align:center; )

HTML6
.post-outer .snippet-thumbnail {
    /* Other existing properties */
    margin-left: 39px; /* Reduce margin-left to optimize LCP */
    /* Other existing properties */
}

view will be like this👇

HTML7
.post-outer .snippet-thumbnail {
    margin-top: 20px; /* Top margin set to 20px */
    margin-right: 15px; /* Right margin set to 15px */
    margin-bottom: 20px; /* Bottom margin set to 20px */
    margin-left: 15px; /* Left margin set to 15px */
}

.post-outer .snippet-thumbnail{
-webkit-box-align:center;
-webkit-align-items:center;
-ms-flex-align:center;
align-items:center;
background:#000;
display:-webkit-box;
display:-webkit-flex;
display:-ms-flexbox;
display:flex;
-webkit-box-flex:0;
-webkit-flex:0 0 auto;
-ms-flex:0 0 auto;
flex:0 0 auto;
height:256px;
-webkit-box-pack:center;
-webkit-justify-content:center;
-ms-flex-pack:center;
justify-content:center;
margin-$endSide:136px;
overflow:hidden;
-webkit-box-ordinal-group:3;
-webkit-order:2;
-ms-flex-order:2;
order:2;
position:relative;
width:256px
}
#4

LAZY LOAD INTRESECTING PRELOAD LINK NO 1 USE THIS CODE PASTE IT ABOVE THE </BODY>

HTML8
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;Lazy Loading Example&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;img src=&quot;image-to-preload.jpg&quot; loading=&quot;lazy&quot; alt=&quot;Preloaded Image&quot;&gt;
  &lt;img src=&quot;another-image-to-preload.jpg&quot; loading=&quot;lazy&quot; alt=&quot;Another Preloaded Image&quot;&gt;
  
  &lt;script&gt;
    document.addEventListener(&quot;DOMContentLoaded&quot;, function() {
      let lazyImages = document.querySelectorAll(&#39;img[data-src]&#39;);

      let options = {
        root: null,
        rootMargin: &#39;0px&#39;,
        threshold: 0.1
      };

      let lazyLoad = function(entries, observer) {
        entries.forEach(entry =&gt; {
          if (entry.isIntersecting) {
            let img = entry.target;
            if (img.getAttribute(&#39;loading&#39;) !== &#39;lazy&#39;) {
              img.src = img.dataset.src;
            }
            observer.unobserve(img);
          }
        });
      };

      let observer = new IntersectionObserver(lazyLoad, options);
      lazyImages.forEach(image =&gt; observer.observe(image));
    });
  &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

Result for upper work in google speed 89


Phase
% of LCP
Timing
TTFB
45%
1,360 ms
Load Delay
0%
0 ms
Load Time
0%
0 ms
Render Delay
55%
1,660 ms


#5
add this yellow code just below the        <div class='snippet-item r-snippetized'>
HTML9
YOU WILL GET THIS CODE IN YOUR THEME 

    <b:includable id='userProfileText'>

          <dd class='profile-textblock profile-snippet snippet-container r-snippet-container'>

               <div class='snippet-item r-snippetized'>             

              <data:aboutme/>

            </div>

            <div class='snippet-fade r-snippet-fade hidden'/>

               &lt;!-- Async loading of scripts --&gt;

  &lt;script async src=&quot;your-script.js&quot;&gt;&lt;/script&gt;

&lt;!-- Preload rule for resources --&gt;

  &lt;link rel=&quot;preload&quot; href=&quot;your-resource.css&quot; as=&quot;style&quot; /&gt;

          </dd>

        </b:includable>

        <b:includable id='userLocation'>

          <dd class='profile-data profile-location'><data:location/></dd>

        </b:includable>

      </b:defaultmarkup>

    </b:defaultmarkups>

              

ADD THIS DOWN 👇CODE JUST BELOW THE UPPER☝ CODE

code placing is very important otherwise u will get more problems just see upper given code, how to and where to paste it
HTML10

 &lt;!-- Async loading of scripts --&gt;

  &lt;script async src=&quot;your-script.js&quot;&gt;&lt;/script&gt;

  &lt;!-- Preload rule for resources --&gt;

  &lt;link rel=&quot;preload&quot; href=&quot;your-resource.css&quot; as=&quot;style&quot; /&gt;

PPPPP
HTML11 
<p>This is a simple HTML code</p>
CCC
HTML13
<p>This is a simple HTML code</p>
JJJ
HTML14
<p>This is a simple HTML code</p>
KKKK
HTML15
<p>This is a simple HTML code</p>
PPP
HTML16
<p>This is a simple HTML code</p>
CCC
HTML17
<p>This is a simple HTML code</p>







https://ezgif.com/view-metadata/ezgif-5-68fad0e785.webp

<link rel="preload" as="image" href="https://insightssolver.blogspot.com/2024/01/image_400.webp" imagesrcset="https://insightssolver.blogspot.com/2024/01/image_400.webp 400w, https://insightssolver.blogspot.com/2024/01/image_800px.webp 800w">


ye responsive ke liye hai

<img src="https://insightssolver.blogspot.com/2024/01/image_400.webp" srcset="https://insightssolver.blogspot.com/2024/01/image_400.webp 400w, https://insightssolver.blogspot.com/2024/01/image_800px.webp 800w" alt="Image description">

Comments

Lazy Loading Example Preloaded Image Another Preloaded Image