I have the following CSS class that I\'m applying on a
The only way I know of to do this is to load the image using Javascript, and then set that image as the backgroud. For example: tag:
.bg {
background-image: url(\'bg.jp
var bgImg = new Image();
bgImg.onload = function(){
myDiv.style.backgroundImage = 'url(' + bgImg.src + ')';
};
bgImg.src = imageLocation;