Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

256
Vistas
Keeping files in the webpage until client closes it

I have a game which upon loading downloads many files. After I am trying to use them in the webpage they are being downloaded once more, I guess it has something to do with the memory capacity for the webpage but I am having hard time verifying this assumption. What should I do to have files saved in client memory until he closes the webpage? Here you can see how the same file was downloaded twice. First time I use this code to get images from server before playing:

function doAjaxImg(param, lambda) {
    let image = new Image();
    image.onload = () => lambda();
    image.src = param;
}

Then I simply change image.src for the image I want to show on the screen and it requests from the server this image again.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda