Closed q2apro closed 4 years ago
I used the lazy load plugin for this:
$(document).ready(function() {
// loader icon for all lazy load images
$("img.lazyload").each( function(){
$(this).attr('src', '/img/template/loader.gif');
});
$("img.lazyload").lazyload({
appear : function(elements_left, settings) {
// console.log(this, elements_left, settings);
},
load : function(elements_left, settings) {
// console.log('img loaded');
$(this).freezeframe({
overlay: true,
animation_play_duration: Infinity,
non_touch_device_trigger_event: 'click'
});
}
});
});
Source: https://appelsiini.net/projects/lazyload/ https://appelsiini.net/projects/lazyload/
I am using "freezeframe.js v3.0.10" here: https://www.matheretter.de/tutorial and would like to lazy-load all the animations. Because it is 24 MB.
Is there a way to implement lazy-loading (only when the image comes into view, it is processed)?
Thanks!