Is there a way to execute a method once an image is completely loaded, considering that the .load
function doesn't work for images in Internet Explorer?
Below is the code snippet in question:
<img
ref="image"
:src="src"
:alt="alt"
@load="onLoad"
/>
script:
methods: {
onLoad() {
console.log('Please trigger this method only when the image has fully loaded');
},
}