You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Roman Liutikov edited this page Jul 15, 2020
·
3 revisions
Improve startup time
NOTE: This optimization is enabled by default since v0.11.5
The following is very advanced, so don't do this unless you're very familiar with rum:
When you have many components (and especially if you target mobile) you may notice that creating the components (ie, the browser evaluating those defc's and calling rum.core/build-class can take some time). Though, you don't need those component spec's initialized right away unless you actually use that component. The solutions is to write your own defc or constructor and initialize the component lazily: