opus1269 / screensaver

A Chrome Extension providing a screensaver with custom photo sources. Developed with Polymer 3 Web Components.
Other
27 stars 17 forks source link

List container is being repainted each time an album is selected #2

Closed leathej1 closed 5 years ago

leathej1 commented 5 years ago

Each time an album is selected, a call is made to https://photoslibrary.googleapis.com/v1/mediaItems:search, and then the list-container is repainted. With a lot of albums, this takes many seconds.

opus1269 commented 5 years ago

Yes. That is expected behavior. If your used to previous versions of the extension, it loaded all the photos for all the albums when you first displayed the list

So, the initial display of the list should be faster, but you pay the cost when you select the album.

There are now limits to the number of times the extension can call the API that interfaces with Google Photos, so I am trying to minimize then

I'm working on getting more quota with the folks at Google. In the mean time, if you could limit the number of albums and photos you select, I would appreciate it

Regards, Mike

On Thu, Feb 21, 2019, 8:02 AM James Leatherman notifications@github.com wrote:

Each time an album is selected, a call is made to https://photoslibrary.googleapis.com/v1/mediaItems:search, and then the list-container is repainted. With a lot of albums, this takes many seconds.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/opus1269/screensaver/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AKCl-rTxGRm4UnEzG42vQt6lzygdb4PWks5vPqbegaJpZM4bHgOo .