how to call a javascript function after div load code example
Example: call javascript function after div load
document.querySelector('img.my-image').addEventListener('load', function(){
// The image is ready!
});
document.querySelector('img.my-image').addEventListener('load', function(){
// The image is ready!
});