Live data from Hacker News

Ask HN: Retrieving multiple images with a single request?

news.ycombinator.com

1–7 of 7 posts

Re: Ask HN: Retrieving multiple images with a single request?

#3

CSS Image Sprites https://www.w3schools.com/Css/css_image_sprites.asp

I'm familiar with css sprites too. That's still just 1 image per request though.

Say you wanted to populate a social media feed... you'd need to dynamically call media. That produces a huge amount of requests.

What if you want to batch 10 images per request? Does anyone currently do that?

Re: Ask HN: Retrieving multiple images with a single request?

#7

You could do that with blobs and client code...or use mjpeg movies...im not aware of multiple images as such though...itd be worth researching multipart mime types i think

I already have a working prototype that batches media requests. In my example case, I'm sending 1 request and receiving 6 images in return.