Merge pull request #96 from Laxse/patch-1

Update sakura-app.js
This commit is contained in:
Mashiro 2019-08-03 01:41:42 +08:00 committed by GitHub
commit 8bde25ae5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions

View File

@ -1407,9 +1407,14 @@ var home = location.href,
$('#bgvideo').css({ $('#bgvideo').css({
'min-height': _height 'min-height': _height
}); });
window.resizeFlag= null;
$(window).resize(function () { $(window).resize(function () {
Siren.AH(); //直接resize性能爆炸改成延时
}); if(resizeFlag!=null){
clearTimeout(resizeFlag);
}
resizeFlag = setTimeout(function(){ Siren.AH();resizeFlag=null }, 1000);
})
} }
} else { } else {
$('.headertop').addClass('headertop-bar'); $('.headertop').addClass('headertop-bar');