On my website, I have decided to incorporate high-resolution images as the background for the body. However, when I use
document.body.style.backgroundImage = "url('URL OF PICTURE')";
, the image loads vertically down the page which is not ideal. I am looking for a way to only set the background image once it has fully loaded, while displaying a default grey background in the meantime. Can anyone provide suggestions on how to achieve this?