I want to load external images on my page asynchronously using jQuery and I have tried the following:
$.ajax({ url: \"http://somedomain.
This works too ..
var image = new Image(); image.src = 'image url'; image.onload = function(e){ // functionalities on load } $("#img-container").append(image);