# Kibana 4 Iframe Index.js size

**URL:** <https://discuss.elastic.co/t/kibana-4-iframe-index-js-size/24282>\
**Category:** Kibana\
**Created:** [June 24, 2015, 4:31pm UTC](https://discuss.elastic.co/t/kibana-4-iframe-index-js-size/24282 "2015-06-24T16:31:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KibanaLover](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KibanaLover](https://discuss.elastic.co/u/KibanaLover)\
**Post date:** [June 24, 2015, 4:31pm UTC](https://discuss.elastic.co/t/kibana-4-iframe-index-js-size/24282/1 "2015-06-24T16:31:33Z")

</div>

Hi,

When I use the share a link function for my dashboard in Kibana 4.0.2 I see that the downloaded index.js is 1mb in size. When I embed that same dashboard via iframe (using the Embed this dashboard link) the index.js file is 5mb in size. This is causing require.js timeout issues at some sites due to slower network speeds.

Is the change in size between the two sharing methods expected?

Any input would be much appreciated.

Regards,

Rob

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [June 24, 2015, 9:40pm UTC](https://discuss.elastic.co/t/kibana-4-iframe-index-js-size/24282/2 "2015-06-24T21:40:44Z")

</div>

I'm not sure exactly what you mean by difference in file sizes - could you elaborate? All embedding does is turn off some UI elements, like nav bars.

---

<div class="post-metadata">

**Author:** ![KibanaLover](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KibanaLover](https://discuss.elastic.co/u/KibanaLover)\
**Post date:** [June 25, 2015, 9:47am UTC](https://discuss.elastic.co/t/kibana-4-iframe-index-js-size/24282/3 "2015-06-25T09:47:01Z")

</div>

Hi,

Thanks for the response. I was being a little stupid. I've written a lightweight proxy to accept traffic on port 443, parse the kibana payload, check authentication, and redirect to 5601. I'd forgotten to capture and send on the kibana client http request headers, this meant that the browser was doing a complete source download at each access, rather than relying on the cache (5mb v 250bytes!).

Thanks,

Rob

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:17pm UTC](https://discuss.elastic.co/t/kibana-4-iframe-index-js-size/24282/4 "2017-07-06T14:17:29Z")

</div>


