# Iframe is resized only after all chunks are loaded

**URL:** <https://community.developer.atlassian.com/t/iframe-is-resized-only-after-all-chunks-are-loaded/11310>\
**Category:** Everything Else\
**Tags:** react, atlaskit\
**Created:** [November 17, 2017, 7:22am UTC](https://community.developer.atlassian.com/t/iframe-is-resized-only-after-all-chunks-are-loaded/11310 "2017-11-17T07:22:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiv](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@shiv](https://community.developer.atlassian.com/u/shiv)\
**Post date:** [November 17, 2017, 7:22am UTC](https://community.developer.atlassian.com/t/iframe-is-resized-only-after-all-chunks-are-loaded/11310/1 "2017-11-17T07:22:34Z")

</div>

In order to reduce TTI, I am using code splitting in our application and it is working correctly.  
However Iframe is not getting resized till all chunks are downloaded. And it looks like below and does not get resized till all chunks are downloaded.

 ![](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/2/5/25217d889a803b1277a9aa30d1521cfa050c9105.jpg)

Looks like it is resized only after window.onload.

Is there a way to resize iframe before I start pre loading of chunks?
