For both methods, my untested assumption is that you have to attach some element(s) to the DOM which actually triggers the browser to load the images from the server, or use the _javascript_ Image() object to do the same. The XHR object is only getting XML/text... not the binary data.

On 6/12/06, Sam <[EMAIL PROTECTED]> wrote:
I could experiment to figure this out, but maybe the work has been done so I'm going to ask.
 
Using Ajax, if I wanted to preload several (20) small (<1K) images, behind the scenes... would I...
 
 1 - Queue the loading of the images with Ajax one at a time, asynchronously, and ignore the completion results.  Would this result in the image being in the browser's cache even if the Ajax returned result was not attached to the DOM?
 
 2 - Queue the loading of an HTML page that refers to all of the images  Must the Ajax page loaded content be attached to the DOM for the images to be loaded, or can I forget about that and assume the images will load?
 
Sam

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to