fixed 图片懒加载bug
This commit is contained in:
1 parent
819b6d6e85
commit
f8730d09e6
6 files changed
+216
-85
No files matched your search
@@ -8,9 +8,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
// 文章图片懒加载 (优先初始化,防止其他模块调用时出错)
|
||||
if (typeof lazyLoadInit === 'function') {
|
||||
lazyLoadInit({
|
||||
offsetBottom: 800,
|
||||
offsetTopm: 800,
|
||||
showTime: 1100
|
||||
offsetBottom: 50,
|
||||
offsetTopm: 50,
|
||||
showTime: 1100,
|
||||
queueInterval: 100
|
||||
});
|
||||
} else {
|
||||
console.warn('lazyLoadInit is not defined');
|
||||
|
||||
Reference in new issue
Block a user