What is better for dynamically loading images- using an ajax function or changing the image’s src attribute to the desired link?
Please supply a snippet of code with your answer. Thanks
What is better for dynamically loading images- using an ajax function or changing the
Share
Depends on your definition of “better,” but since JavaScript really doesn’t deal well with binary streams, I’d recommend the “changing the image’s
srcattribute” option.