Open g-rocket opened 10 years ago
To get an idea here - how many videos do you have in your list, roughly?
Which list do you mean?
The number of videos that yt-sanegrid typically shows for your consumption. In your other ticket, your screenshots seemed to suggest that you have quite a lot of videos showing up there in general. What I'm currently thinking about is - maybe I should simply add in a setting that lets you make the page only show you X number of items.
about 425 (I just counted, but I might have miscounted by a couple of videos).
O_O You counted 425 items? Does this include watched videos?
Yes. This is all the videos that appeared until I reached the bottom of the page.
And does performance improve when you hide watched videos?
I can't hide watched videos. That part of the bottom bar doesn't show on my iPhone, even in landscape mode (maybe it's not wide enough?)
Hmm, it should at the very least show up in the settings. Does it do that?
The setting does show up there.
Performance significantly increases when I turn off watched videos. The page loads in about 15 seconds, down from 40-or-so, and the browser doesn't crash when I open a video.
With showing watched videos turned off, there are about 337 videos, rather than about 425.
You might want to look into merging some of the work from kbillings/yt-sanegrid. It looks like he's already implemented number-of-video limits and a way to clear the watched cache.
When I first started using this page, loaded fine on mobile browsers (I tested on Mobile Safari (iOS 7) and Google Chrome for iOS (iOS 7)), but after it had been used for some time on my mobile device, page load time started to increase significantly, eventually taking about 40 or so seconds to load the page, and now it has gotten to the point where it crashes the browser, either while loading, or, after I click on a video, while trying to load the webpage for the video. I think this has something to do with the stored list of watched videos getting too big. As a temporary fix, it would be nice to have a button to clear the list of watched videos while keeping my filters intact.