jellyfin-web icon indicating copy to clipboard operation
jellyfin-web copied to clipboard

Backdrops not cleaned up

Open TMUniversal opened this issue 1 year ago • 0 comments

Describe The Bug Backdrop image containers are retained when rotating to the next image, even though only one is displayed at a time. The old/unused divs are (apparently) not re-used. This causes performance hiccups when waiting on the home page for a while, especially when having the tab open a for while in the background and then returning.

Steps To Reproduce

  1. Go to User Preferences
  2. Click on Display
  3. Scroll down to Backdrops
  4. Make sure backdrops are enabled
  5. Return to home screen
  6. Wait a few rotations of the backdrop images
  7. See in body > div.backdropContainer (/html/body/div[1]) that there are multiple div.backdropImage, even though only one is displayed.

Expected Behavior Clean up unused divs in body > div.backdropContainer.

Logs not applicable

Screenshots

System (please complete the following information):

  • Platform: Windows 10
  • Browser: Brave 1.43.93 Chromium: 105.0.5195.127
  • Jellyfin Version: 10.8.4

Additional Context

TMUniversal avatar Sep 18 '22 10:09 TMUniversal