# Iframe loading and processing

**URL:** <https://forum.kirupa.com/t/iframe-loading-and-processing/637270>\
**Category:** web dev\
**Created:** [October 6, 2017, 3:17pm UTC](https://forum.kirupa.com/t/iframe-loading-and-processing/637270 "2017-10-06T15:17:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mulligan81](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mulligan81](https://forum.kirupa.com/u/Mulligan81)\
**Post date:** [October 6, 2017, 3:17pm UTC](https://forum.kirupa.com/t/iframe-loading-and-processing/637270/1 "2017-10-06T15:17:33Z")

</div>

Having following 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?
