Post by account_disabled on Feb 15, 2024 3:51:03 GMT -6
What is Lazy Load? How To? Site speed plays an important role in SEO efforts and increasing user experience. There are many things that can be done to increase site speed. However, the most important thing to do to increase the user experience and reduce the opening time of the site is to apply lazy load to the images. What is Lazy Load? What is lazy loading? Lazy loading means delaying loading images or files until they are needed rather than loading them immediately. If you do not see an image on the screen when the first page loads, it does not need to be loaded immediately. In the lazy load system, when you start seeing the images on the screen, the images are loaded. In other words, requests are fulfilled when needed. What are the advantages of Lazy Load? Even applying the lazy load system only on images brings many advantages.
The two biggest advantages of the system we call lazy or Greece Phone Number List delayed loading are that it reduces the initial opening speed of the site, reduces the server response time and indirectly increases the user experience. Of course these benefitsSEOIt will also reflect on your performance. Example for Lazy Loading For example, let's say you are reading a blog content with 10 images on a mobile device. When you first enter the website, you will probably see only 1-2 images on the opening screen. Because your screen size will fit only 1-2 images (Of course, this figure may vary depending on the image size). While you only see 1-2 images on the screen, why should the remaining 8-9 images be loaded? When you scroll on the screen and approach other images, the Lazy load system comes into play and requests the image to be loaded. In this way, the opening speed of the website decreases. How to Lazy Load? how to lazy load Lazy loading is done by interfering with the images on the website with javascript code.
There are many javascript libraries to do lazy loading. Many plugins are available for ready-made systems such as WordPress. 1- Manual (Without Plugins) Lazy Load Making If you have a specially designed website, you can lazy load it very simply with basic software knowledge. What we need for this is the javascript library named “lazysizes”. We add our Javascript code to the body area of our website as follows. <script src="lazysizes.min.js" async></script> For js library detailsclick here. Next, we need to make a small change in the <img> tag where we define our images. In the normal image definition, <img src="images/gorsel.jpg" alt="visual"> is defined like this, while for Lazy load <img data-src="images/gorsel.jpg" class="lazyload" alt="visual"> We need to define it as ">". In other words, “data-src” should be preferred instead of “src” when adding images. You also need to define 'class="lazyload"' in the <img> tag where the image is defined. After you complete these steps, only the images visible on the user's screen will be loaded.
The two biggest advantages of the system we call lazy or Greece Phone Number List delayed loading are that it reduces the initial opening speed of the site, reduces the server response time and indirectly increases the user experience. Of course these benefitsSEOIt will also reflect on your performance. Example for Lazy Loading For example, let's say you are reading a blog content with 10 images on a mobile device. When you first enter the website, you will probably see only 1-2 images on the opening screen. Because your screen size will fit only 1-2 images (Of course, this figure may vary depending on the image size). While you only see 1-2 images on the screen, why should the remaining 8-9 images be loaded? When you scroll on the screen and approach other images, the Lazy load system comes into play and requests the image to be loaded. In this way, the opening speed of the website decreases. How to Lazy Load? how to lazy load Lazy loading is done by interfering with the images on the website with javascript code.
There are many javascript libraries to do lazy loading. Many plugins are available for ready-made systems such as WordPress. 1- Manual (Without Plugins) Lazy Load Making If you have a specially designed website, you can lazy load it very simply with basic software knowledge. What we need for this is the javascript library named “lazysizes”. We add our Javascript code to the body area of our website as follows. <script src="lazysizes.min.js" async></script> For js library detailsclick here. Next, we need to make a small change in the <img> tag where we define our images. In the normal image definition, <img src="images/gorsel.jpg" alt="visual"> is defined like this, while for Lazy load <img data-src="images/gorsel.jpg" class="lazyload" alt="visual"> We need to define it as ">". In other words, “data-src” should be preferred instead of “src” when adding images. You also need to define 'class="lazyload"' in the <img> tag where the image is defined. After you complete these steps, only the images visible on the user's screen will be loaded.