2017 © Pedro Peláez
 

contao-module contao-lazy-load-element

Contao extension to allow lazy loading of content elements or modules.

image

fritzmg/contao-lazy-load-element

Contao extension to allow lazy loading of content elements or modules.

  • Monday, November 6, 2017
  • by fritzmg
  • Repository
  • 1 Watchers
  • 4 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 8 Versions
  • 8 % Grown

The README.md

, (*1)

Contao Lazy Load Element

Contao extension to allow lazy loading of content elements or modules., (*2)

When installed, this extension provides an additional content element where you can define another content element or module to be lazy loaded on page load. You also have the possibility to let the element reload periodically, once it has been loaded for the first time. And you are able to define, whether the element should only load once it is in the viewport., (*3)

To enable this functionality you must enable jQuery in the page layout., (*4)

When an element gets loaded or reloaded, either the event lazyload or lazyload-reload will be triggered on that element. This way you can execute your own JavaScript, once an element got loaded (for example to initialize other scripts on the loaded content)., (*5)

$('#myLazyLoadElement').on('lazyload', function(event)
{
    // …
});

There is also a stylesheet included by default that shows an AJAX loader circle while the element is being loaded or reloaded. To remove it completely you can use this style:, (*6)

.ce_lazyload:before,
.ce_lazyload:after,
.mod_lazyload:before,
.mod_lazyload:after {
    display: none;
}

Or simply change the styles to your liking. Have a look at the default styles in assets/lazyload.scss., (*7)

The Versions

06/11 2017

dev-master

9999999-dev http://www.inspiredminds.at

Contao extension to allow lazy loading of content elements or modules.

  Sources   Download

LGPL-3.0+

The Requires

 

module content load contao lazy element

14/02 2017

1.0.0

1.0.0.0 http://www.inspiredminds.at

Contao extension to allow lazy loading of content elements or modules.

  Sources   Download

LGPL-3.0+

The Requires

 

module content load contao lazy element

17/01 2017

0.3.1

0.3.1.0 http://www.inspiredminds.at

Contao extension to allow lazy loading of content elements or modules.

  Sources   Download

LGPL-3.0+

The Requires

 

module content load contao lazy element

16/01 2017

0.3.0

0.3.0.0 http://www.inspiredminds.at

Contao extension to allow lazy loading of content elements or modules.

  Sources   Download

LGPL-3.0+

The Requires

 

module content load contao lazy element

16/01 2017

0.2.2

0.2.2.0 http://www.inspiredminds.at

Contao extension to allow lazy loading of content elements or modules.

  Sources   Download

LGPL-3.0+

The Requires

 

module content load contao lazy element

15/01 2017

0.2.1

0.2.1.0 http://www.inspiredminds.at

Contao extension to allow lazy loading of content elements or modules.

  Sources   Download

LGPL-3.0+

The Requires

 

module content load contao lazy element

11/01 2017

0.2.0

0.2.0.0 http://www.inspiredminds.at

Contao extension to allow lazy loading of content elements or modules.

  Sources   Download

LGPL-3.0+

The Requires

 

module content load contao lazy element

11/01 2017

0.1.0

0.1.0.0 http://www.inspiredminds.at

Contao extension to allow lazy loading of content elements or modules.

  Sources   Download

LGPL-3.0+

The Requires

 

module content load contao lazy element