lazy load scripts
This commit is contained in:
parent
0a670a4635
commit
c5802fc5ab
38 changed files with 224 additions and 162 deletions
|
@ -2,19 +2,11 @@
|
|||
|
||||
function getView() {
|
||||
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
return 'PosterCard';
|
||||
}
|
||||
|
||||
return 'PosterCard';
|
||||
}
|
||||
|
||||
function getResumeView() {
|
||||
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
return 'ThumbCard';
|
||||
}
|
||||
|
||||
return 'ThumbCard';
|
||||
}
|
||||
|
||||
|
@ -33,9 +25,6 @@
|
|||
function loadLatest(page, userId, parentId) {
|
||||
|
||||
var limit = 18;
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
limit = 10;
|
||||
}
|
||||
|
||||
var options = {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue