Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Learn More

setting myImage.src = preloadedImage.src reloads the image instead of using the cache. How do I work around this?

  • 2 respostas
  • 1 tem este problema
  • 17 visualizações
  • Última resposta de mhs0mhs0

more options

I am preloading an image, and then setting an image already on the page to a preloaded image by setting the .src equal to the preloaded image .src. This results in the image image being reloaded even though it should be cached. How can I get it to just swap in the cached image?

I am preloading an image, and then setting an image already on the page to a preloaded image by setting the .src equal to the preloaded image .src. This results in the image image being reloaded even though it should be cached. How can I get it to just swap in the cached image?

Solução escolhida

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.

Ler esta resposta 👍 0

Todas as respostas (2)

more options

Solução escolhida

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.

more options

Thanks! For future researchers the thread is here: http://forums.mozillazine.org/viewtopic.php?f=25&t=2063585&start=0

Alterado por mhs0mhs0 em