Lazy load iframe
This commit is contained in:
parent
f6b16a30ac
commit
7150718a51
2 changed files with 9 additions and 1 deletions
|
@ -179,7 +179,10 @@ $(function () {
|
|||
$("[data-src]img").each(function() {
|
||||
$(this).attr("src", $(this).attr("data-src"));
|
||||
})
|
||||
}, "500");
|
||||
$("[data-src]iframe").each(function() {
|
||||
$(this).attr("src", $(this).attr("data-src"));
|
||||
})
|
||||
}, "100");
|
||||
});
|
||||
|
||||
if (!Date.now) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue