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:
parent
bc640d8e44
commit
ed3e810dd7
1 changed files with 15 additions and 0 deletions
15
view/js/script.js
Normal file → Executable file
15
view/js/script.js
Normal file → Executable 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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue