Lazyload integration for Contao Open Source CMS

Installs: 957

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:contao-component

1.2.3 2019-02-04 15:33 UTC

This package is not auto-updated.

Last update: 2024-09-29 04:49:34 UTC


README

This is a customized LazyLoad package to be integrated in Contao Open Source CMS.

Install

composer require heimrichhannot-contao-components/lazyload

In use

Config

Add the following to your config (keep keys to prevent double integration):

Contao 4

$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';

Contao 3

$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';