Upon loading the site, an image is displayed with the following code:
<img id="some_Image" src="some_source">
However, I am looking to avoid requesting this image again from "some_source"
. This is because calculating the image can be resource-intensive and I do not want to recalculate it. Instead, I plan to reuse the same image later on in a JQuery dialog. While I am aware of the append
and prepend
functions, based on my interpretation of the documentation, it seems like I would need to insert a complete image tag as an argument, triggering a new request for the image (unless the browser caches it).