art-institute-of-chicago / browser-extension

Browser extension to view a random artwork from our collection in a new browser tab
GNU Affero General Public License v3.0
14 stars 6 forks source link

Implement responsive images for performance #38

Closed IllyaMoskvin closed 5 years ago

IllyaMoskvin commented 5 years ago

This should allow us to balance load on IIIF server vs. delivering images close to the user's window size. See Responsive images on MDN for more info.

Recommended sizes to maximize likelihood of hitting an existing cache: 200, 400, 843.

Less likely, but also possible: 600, 1280, 1686.

surreal8 commented 5 years ago

@IllyaMoskvin will try a different approach for fullscreen images using openseadragon

IllyaMoskvin commented 5 years ago

Implemented in c0967f8 using OpenSeadragon's "legacy image pyramid" Tile Source.