-
October 6th, 2017, 03:15 AM
#1
Iframe loading and processing
Having following code
Code:
<iframe id="myframe" src="..."></iframe>
<script>
document.getElementById('myframe').onload = function() {
alert('myframe is loaded');
};
</script>
i wonder how does the browser processes an iframes? Does it load the iframe content in the separate thread? If so is it run synchronously with the main thread?
-
October 6th, 2017, 11:19 PM
#2
Re: Iframe loading and processing
If it is getting run in a separate thread, why would it be executed synchronously with the main thread (i.e. why create a separate thread to run a synchronous task)?
-
October 8th, 2017, 03:54 AM
#3
Re: Iframe loading and processing
Originally Posted by Arjay
If it is getting run in a separate thread, why would it be executed synchronously with the main thread (i.e. why create a separate thread to run a synchronous task)?
So the answer is that it's run in the one main thread?
-
October 9th, 2017, 01:54 AM
#4
Re: Iframe loading and processing
Originally Posted by Mulligan
So the answer is that it's run in the one main thread?
I don't know whether iFrames are run in separate threads (I suspect they may be); however, if they are run in separate threads, it would be doubtful that they would be synchronized with the main thread (because that would defeat the purpose of using a separate thread).
-
October 12th, 2017, 03:45 AM
#5
Re: Iframe loading and processing
Older browsers definitely use 1 thread. Most current browsers use 1 process. Chrome does additional tabs & iframes out of process.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|