This month, we’re pleased to spotlight one of our sponsors, Atlantic.Net, and learn why Open…
The post Atlantic.Net: Why we sponsor OSI first appeared on Voices of Open Source.
This month, we’re pleased to spotlight one of our sponsors, Atlantic.Net, and learn why Open…
The post Atlantic.Net: Why we sponsor OSI first appeared on Voices of Open Source.
Subscribe to Our Channel
https://www.youtube.com/user/LokmatNews?sub_confirmation=1
आमचा video आवडल्यास धन्यवाद. Like, Share and Subscribe करायला विसरू नका!
मित्रांसोबत गप्पा मारताना विश्वसनीय, संशोधनावर आधारीत माहिती सादर करायची असेल तर लोकमतचे चॅनल सबस्क्राईब करा. कारण या चॅनलवर तुम्हाला पाहायला मिळतील अतिशय अभ्यासू, वेगळ्या अँगलच्या बातम्या ! राजकारण, क्राईम, मनोरंजन आणि क्रीडा क्षेत्रातील अनुभवी पत्रकार तुमच्यासाठी आणत आहेत दर्जेदार आणि जाणते करणाऱ्या बातम्या….
Click Here For Latest News & Updates►http://www.lokmat.com
To Stay Updated Download the Lokmat App►
Android Google Play: http://bit.ly/LokmatApp
Like Us On Facebook ► https://www.facebook.com/lokmat
Follow Us on Twitter ►https://twitter.com/MiLOKMAT
Instagram ►https://www.instagram.com/milokmat
Computer, Mobile, Website, SEO, YouTube or Facebook. Digital market internet marketing and Tutorial Video on WordPress နည်းပညာများ
This Video is Just for educational purposes and does not have any intention to mislead or violate Google and YouTube community guidelines or policy.
I respect and follow all terms & conditions of Google & YouTube.
Contact info :-
https://www.linkedin.com/in/tech-panta/
https://www.facebook.com/technicalpantha
https://t.me/technicalpantha
Website: https://laelarpar.com
The website loading speed is a very important aspect in the user’s perception of the portal. Then how can you speed up the loading of a website that has a lot of media or iframes? One of the best solutions is to take advantage of lazy loading. The easiest way to use this method in Drupal is to use the Lazy-load module.
It’s the time required to display a website to a user, calculated from the moment the link is clicked. It depends on the amount of text, embedded elements (such as iframes), scripts, and media (images, videos), where the size also matters. Often the media and embedded elements take the longest to load. On big websites, many elements are invisible to the users until they scroll the website, yet they are loaded before the part that fits on the display is shown.
Google has introduced SEO guidelines in which loading speed is taken into account when positioning a website. Therefore, it’s worth taking care of the smooth display of web pages. Two significant metrics in terms of the website loading speed are TBT (Total Blocking Time) and LCP (Largest Contentful Paint). TBT indicates the time it takes for long tasks to complete, while LCP determines after how long a website’s content is likely to be usable. Both metrics are largely influenced by the number and size of loaded items.
Newer versions of Drupal (v9.1.0 and above), along with commonly used browsers (Chrome from v76, Firefox from v75), support lazy-loading right after installation. However, you have to reckon with the fact that many websites use older versions of Drupal. Most often, these are websites that have been developed for years, and therefore often have a lot of data (including media and embedded elements), the long loading of which worsens the perception of the portal. In such cases, it’s worth checking whether lazy loading can be used to reduce the loading time of the website and the transfer needed to load visible elements.
Released on April 10, 2018, the Drupal Lazy-load module allows you to limit the loading of the abovementioned elements to only those required at a given time. This reduces the website loading time and, above all, reduces the consumption of transmission. Due to its usefulness, the module is used by more than 10 thousand websites. It has versions for both Drupal 8+ (the latest version 8.x-3.11 as of January 31, 2022) and Drupal 7 (the latest version 7.x-1.4 as of April 22, 2019).
It’s commendable that Osman Gormus is the sole maintainer of the project, and yet the module hasn’t lost support since its creation.
To illustrate the effectiveness of the Lazy-load module, here are the test results on a website containing 36 iframes (of which 6 are visible in the loaded area) and 116 images that are out of view.
In the above example, the user is able to see the website almost fifty percent faster when using the module. Moreover, the link savings is more than 98%. Of course, the results for each website will strongly depend on the size and number of elements outside the loading area. While the example is grotesque (we are unlikely to encounter a website with such a large number of images or embedded elements), it’s meant to illustrate how important the use of a lazy loading strategy can be in the perception of a website.
The module uses additional libraries, so the installation requires taking them into account. The easiest and fastest way is to use the composer.json file for this. In a few steps, we can perform a full installation of the module, including dependencies.
{
"type": "composer", "url": "https://asset-packagist.org"
}
composer require drupal/lazy:^3.0 bower-asset/lazysizes:^5.1 oomphinc/composer-installers-extender:^2.0 --no-update
"installer-types": ["bower-asset", "npm-asset"],
"installer-paths": {
…
"web/libraries/{$name}": ["type:drupal-library", "type:bower-asset", "type:npm-asset"],
…
}
Full instructions can be found in the official documentation.
In case you need a manual installation, download the module files from its website on Drupal.org and the library available on GitHub and extract them one by one to the folders of modules/contrib/lazy and libraries/lazysizes. Full instructions can be found on the module website.
Important: The module has its own configuration located under the path of admin/config/content/lazy. It’s divided into 3 tabs.
In order to attach lazy loading, editing the display of the fields for which its use is needed is required. For example, you want to enable the addition of images that support lazy loading on the page type websites. To do this, you need to perform the following steps:
From this moment on, all images added in this field will use lazy loading. What’s more, classes will be added, set in the module’s configuration (admin/config/content/lazy) in the Lazysizes configuration tab, discussed earlier in the Lazysizes configuration section.
With the above settings, we can add effects to elements with lazy loading, depending on their status, using styling in CSS files (such as blurring images that are still being loaded or adding a red border to elements that failed to load). Below is an example with two images – one fully loaded (top) and one in the process of loading (bottom):
For embedded content, added within the content, be sure to add the attribute of loading=”lazy”, as in case of iframe:
The module adds the hook of hook_lazy_field_formatters_alter, which allows adding formatters, not yet supported, to image-based fields.
Example:
function hook_lazy_field_formatters_alter(array &$formatters) {
$formatters[] = 'xyz_module_field_formatter';
return $formatters;
}
Using the Drupal Lazy-load module significantly reduces the loading time of websites that have multiple media, which are outside the visible area, immediately after they are loaded, and reduces user data transmission. Lazy-load is useful for older versions of Drupal, as newer versions have native lazy-load support embedded. However, even for them, this module is noteworthy for its configurable styling of elements, depending on their current loading status.
Are you wondering if the Lazy-load module is right for your website? We maintain and develop a lot of websites on Drupal, so applying our experience, we’ll be happy to recommend which solution will be best for your website.
When we think of the achievements of Europe, perhaps the first thing that comes to mind is the building of its great cities, such as London, Paris, and Rome. Many think of Europe as the home of early advancements in science, music, literature, and the industrial revolution. Or, perhaps we associate Europe as the cradle of democratic governance as we know it today.
The post What’s the state of open source in Europe? And why does it matter now? appeared first on Linux.com.