Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 2 பதிலளிப்புகள்
  • 1 இந்த பிரச்சனை உள்ளது
  • 1 view
  • Last reply by mhs0mhs0

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?

தீர்வு தேர்ந்தெடுக்கப்பட்டது

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.

Read this answer in context 👍 0

All Replies (2)

தீர்வு தேர்ந்தெடுக்கப்பட்டது

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.

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

mhs0mhs0 மூலமாக திருத்தப்பட்டது