Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Speed up loading times of the iframes #330

Open
nikgraf opened this issue Jun 12, 2016 · 1 comment
Open

Speed up loading times of the iframes #330

nikgraf opened this issue Jun 12, 2016 · 1 comment

Comments

@nikgraf
Copy link
Member

nikgraf commented Jun 12, 2016

One issue we have is that every iframe loads the iframe-client-bundle.js as well as the user-bundle.js.

The big chunk definitely is the user-bundle with the app inside taking up around 700milliseconds to evaluate:
screen shot 2016-06-12 at 08 07 15

Even in our dev example the file-size of the user-bundle is already quite large with 9.6 MB

user-bundle

There are several way we can try to tackle this:

  • Find a way so evaluation can happen in parallel. Right now it seems like they run sequence.
  • If possible leverage caching to make sure it doesn't evaluate the script in every iFrame.

First idea:

  • The attribute async="true" could do the trick, but we would need to make sure both scripts (user-bundle & iframe-client-bundle) are loaded until execution.

@jantimon @mxstbr @RStankov ideas?

@nikgraf
Copy link
Member Author

nikgraf commented Jun 12, 2016

btw find here the first improvement (splitting client into client & iframe-client): #329

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant