mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reduce traffic from play to feature
This commit is contained in:
parent
7b80b2ea32
commit
58cebe2486
18 changed files with 157 additions and 59 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
function forceRefresh(loading) {
|
||||
|
||||
var elem = document.body;
|
||||
var elem = this.parentNode;
|
||||
|
||||
elem.style.webkitAnimationName = 'repaintChrome';
|
||||
elem.style.webkitAnimationDelay = (loading === true ? '500ms' : '');
|
||||
|
@ -66,7 +66,7 @@
|
|||
|
||||
if (enableRefreshHack) {
|
||||
|
||||
forceRefresh(true);
|
||||
forceRefresh.call(this, true);
|
||||
dom.addEventListener(this, 'click', forceRefresh, {
|
||||
passive: true
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue