daviddeutsch / yt-sanegrid

YouTube abandoned the subscription grid view. This has made a lot of people very angry and been widely regarded as a bad move.
http://daviddeutsch.github.io/yt-sanegrid/
GNU General Public License v3.0
37 stars 10 forks source link

Page isn't very nice to mobile browsers. #95

Open g-rocket opened 10 years ago

g-rocket commented 10 years ago

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.

daviddeutsch commented 10 years ago

To get an idea here - how many videos do you have in your list, roughly?

g-rocket commented 10 years ago

Which list do you mean?

daviddeutsch commented 10 years ago

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.

g-rocket commented 10 years ago

about 425 (I just counted, but I might have miscounted by a couple of videos).

daviddeutsch commented 10 years ago

O_O You counted 425 items? Does this include watched videos?

g-rocket commented 10 years ago

Yes. This is all the videos that appeared until I reached the bottom of the page.

daviddeutsch commented 10 years ago

And does performance improve when you hide watched videos?

g-rocket commented 10 years ago

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?)

daviddeutsch commented 10 years ago

Hmm, it should at the very least show up in the settings. Does it do that?

g-rocket commented 10 years ago

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.

g-rocket commented 10 years ago

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.