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:
parent
f53cb1ca8a
commit
b7eaf270a1
13 changed files with 165 additions and 37 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue