mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
fa1d12e7d4
commit
f672e2d0e1
1 changed files with 5 additions and 0 deletions
|
@ -255,6 +255,11 @@ async function lazyImage() {
|
||||||
// called after an element was successfully handled
|
// called after an element was successfully handled
|
||||||
afterLoad: function (element) {
|
afterLoad: function (element) {
|
||||||
|
|
||||||
|
if(isMobile()){
|
||||||
|
$(".thumbsGIF").hide();
|
||||||
|
// disable it on mobile
|
||||||
|
return false;
|
||||||
|
}
|
||||||
element.addClass('gifNotLoaded');
|
element.addClass('gifNotLoaded');
|
||||||
element.addClass('lazyloadLoaded');
|
element.addClass('lazyloadLoaded');
|
||||||
element.removeClass('blur');
|
element.removeClass('blur');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue