Panggil fungsi javascript setelah beban div

document.querySelector('img.my-image').addEventListener('load', function(){
  // The image is ready!
});
Splendid Shrew