Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

133
Visualizações
Right pattern for downloading 100s of Images from URLs at once?

I've a situation where React web-app would download user's 100s (ex: 100-200) of images (which are less than 20MB, avg ~8MB) and goal is to show the image content on web-app's screen as soon as possible. We use JS' <img src="URL"> for this which seems very crude way for image downloads. The images could be of type .jpg, .png and .gif.

The current experience is very bad, and we hit several network errors while JS attempting 100s of image downloads simultaneously. There are many errors ex: `failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR'.

I think parallel requests using service workers can be one option. Want to understand if there are any industry standard to solve this problem.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Actually HTTP2 protocol was specifically designed for such situation. It must handle 100s of simultaneous images absolutely gracefully.

Make sure HTTP2 is properly configured on your server. net::ERR_HTTP2_PROTOCOL_ERROR indicates there are some issues with your configuration, maybe something's wrong with SSL certificates.

The old approach for this case was: create multiple domains referencing at the same physical server to help browser fire more simultaneous requests. But with HTTP2 now it doesn't make much sense.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda