PHP code example of innocode-digital / wp-hybrid-lazy-loading
1. Go to this page and download the library: Download innocode-digital/wp-hybrid-lazy-loading library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
innocode-digital / wp-hybrid-lazy-loading example snippets
add_filter( 'innocode_wp_hybrid_lazy_loading_attachment_loading', function ( $type, $attachment_id ) {
$type = 'eager'; // Default is "lazy"
return $type;
}, 10, 2 );