PHP code example of heimrichhannot-contao-components / lazyload
1. Go to this page and download the library: Download heimrichhannot-contao-components/lazyload 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/ */
heimrichhannot-contao-components / lazyload example snippets
$GLOBALS['TL_USER_CSS']['huh_components_lazyload'] = 'assets/lazyload/css/lazyload.min.css|static';
$GLOBALS['TL_JAVASCRIPT']['huh_components_lazyload'] = 'assets/lazyload/js/8/lazyload.min.js|static';
// or
$GLOBALS['TL_JAVASCRIPT']['huh_components_lazyload'] = 'assets/lazyload/js/10/lazyload.min.js|static';
$GLOBALS['TL_USER_CSS']['huh_components_lazyload'] = 'assets/components/css/lazyload.css|static';
$GLOBALS['TL_JAVASCRIPT']['huh_components_lazyload'] = 'assets/components/js/8/lazyload.min.js|static';
// or
$GLOBALS['TL_JAVASCRIPT']['huh_components_lazyload'] = 'assets/components/js/10/lazyload.min.js|static';