1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00

Try to load the correct image earlier

This commit is contained in:
daniel 2019-05-28 16:32:10 -03:00
parent bc640d8e44
commit ed3e810dd7

15
view/js/script.js Normal file → Executable file
View file

@ -34,6 +34,21 @@ function clean_name(str) {
str = str.stripAccents().toLowerCase();
return str.replace(/\W+/g, "-");
}
try {
if ($(".thumbsJPG").length) {
$('.thumbsJPG').lazy({
effect: 'fadeIn',
visibleOnly: true,
// called after an element was successfully handled
afterLoad: function (element) {
element.removeClass('blur');
}
});
}
} catch (e) {}
var pleaseWaitIsINUse = false;
$(document).ready(function () {
modal = modal || (function () {