Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
2018-10-18 15:50:27 +0800
Commit
e192bc98e18252553c20fdd35c28042e9d138c65
1 parent
3c8eaa83
增加图片预加载数量
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
public/js/plugin/lazyload.js
public/js/plugin/lazyload.js
View file @
e192bc9
...
...
@@ -9,7 +9,7 @@ require('jquery-lazyload');
const
rawLazyload
=
(
selector
,
options
)
=>
{
let
$imgs
;
let
params
=
{
threshold
:
700
*
2
// 一页大概700 ,提前加载三、四页
threshold
:
700
*
3
// 一页大概700 ,提前加载三、四页
};
if
(
selector
instanceof
$
)
{
...
...
Please
register
or
login
to post a comment