Having following code
<iframe id="myframe" src="..."></iframe>
<script>
document.getElementById('myframe').onload = function() {
alert('myframe is loaded');
};
</script>
Am I right that the iframe is loaded in the separate thread and so its possible that the alert may not fire because iframe content may load before we assign onload event handler in the script running the main thread?