Skip to content

Commit

Permalink
Merge pull request #96 from Laxse/patch-1
Browse files Browse the repository at this point in the history
Update sakura-app.js
  • Loading branch information
mashirozx committed Aug 2, 2019
2 parents 734b8d0 + 2ae87f4 commit 8bde25a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions js/sakura-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1407,9 +1407,14 @@ var home = location.href,
$('#bgvideo').css({
'min-height': _height
});
window.resizeFlag= null;
$(window).resize(function () {
Siren.AH();
});
//直接resize性能爆炸,改成延时
if(resizeFlag!=null){
clearTimeout(resizeFlag);
}
resizeFlag = setTimeout(function(){ Siren.AH();resizeFlag=null }, 1000);
})
}
} else {
$('.headertop').addClass('headertop-bar');
Expand Down Expand Up @@ -1811,4 +1816,4 @@ if ((isWebkit || isOpera || isIe) && document.getElementById && window.addEventL
element.focus();
}
}, false);
}
}

0 comments on commit 8bde25a

Please sign in to comment.