1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

Make Gif Loads after jpeg loads

This commit is contained in:
daniel 2018-05-05 18:51:10 -03:00
parent bfc31d8f30
commit 3875d2b040

View file

@ -73,12 +73,15 @@ $(document).ready(function () {
});
$('.thumbsJPG, .thumbsGIF').lazy({
$('.thumbsJPG').lazy({
effect: 'fadeIn',
visibleOnly: true,
// called after an element was successfully handled
afterLoad: function(element) {
element.removeClass('blur');
element.parent().find('.thumbsGIF').lazy({
effect: 'fadeIn'
});
}
});