Skip to content

Proper loading of asynch script setup#1327

Merged
justin808 merged 1 commit intomasterfrom
justin808/trigger-init-if-not-loading-enable-async-scripts
Sep 3, 2020
Merged

Proper loading of asynch script setup#1327
justin808 merged 1 commit intomasterfrom
justin808/trigger-init-if-not-loading-enable-async-scripts

Conversation

@justin808
Copy link
Copy Markdown
Member

@justin808 justin808 commented Sep 2, 2020

Async script loading optimizes page load speed. With this fix, a bundle
can be loaded "async" and a handler function can determine when to hydrate.
For an example of this, see the docs for loadable-components SSR
https://loadable-components.com/docs/server-side-rendering/#4-add-loadableready-client-side

Loadable-Components is supported by React on Rails Pro:

https://www.shakacode.com/react-on-rails-pro
@justin808 justin808 merged commit 7b301f9 into master Sep 3, 2020
@justin808 justin808 deleted the justin808/trigger-init-if-not-loading-enable-async-scripts branch September 3, 2020 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant