Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid loading (i.e. executing) elements until they are needed. #32

Open
ognen opened this issue Mar 18, 2017 · 0 comments
Open

Avoid loading (i.e. executing) elements until they are needed. #32

ognen opened this issue Mar 18, 2017 · 0 comments

Comments

@ognen
Copy link
Member

ognen commented Mar 18, 2017

Currently, every element definition (ui, updates, etc.) needs to be read / executed before the application starts running. For larger applications, this may negatively impact startup time considerably.

Find a way to load the app incrementally.

One option could be to go the way react avoids execution of module code until necessary. When the code is bundled, it still needs to be parsed by the runtime, however no module is actually executed unless needed. We would need to organize registrations slightly differently to do this.

Another way, perhaps more generic, is to utilize dynamic imports. This would inherently allow WebPack to do code-splitting efficiently. Support in RN needs to be investigated.

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

No branches or pull requests

1 participant