PHP code example of fritzmg / contao-lazy-load-element

1. Go to this page and download the library: Download fritzmg/contao-lazy-load-element 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/ */

    

fritzmg / contao-lazy-load-element example snippets

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