1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

reduce direct dom access

This commit is contained in:
Luke Pulverenti 2016-08-20 17:58:28 -04:00
parent f53cb1ca8a
commit b7eaf270a1
13 changed files with 165 additions and 37 deletions

View file

@ -8,6 +8,10 @@ define(['browser', 'css!./viewcontainer-lite'], function (browser) {
function enableAnimation() {
if (browser.animate) {
return true;
}
if (browser.tv) {
return false;
}
@ -261,7 +265,7 @@ define(['browser', 'css!./viewcontainer-lite'], function (browser) {
selectedPageIndex = -1;
}
if (enableAnimation() && !browser.animate) {
if (enableAnimation()) {
require(['webAnimations']);
}