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

Html.ReactWithInit improvements #858

Merged
merged 3 commits into from
Jul 5, 2019
Merged

Html.ReactWithInit improvements #858

merged 3 commits into from
Jul 5, 2019

Conversation

dustinsoftware
Copy link
Member

Happy 4th! This addresses a year-old bug report in #543

If you wanted to use output caching, it wasn't really feasible to use Html.ReactWithInit without introducing a render performance penalty, because your script tags had to all be added to the top of the page. This PR waits for the DOMContentLoaded event so that won't be an issue anymore. Calls to Html.React are unaffected.

@dustinsoftware dustinsoftware merged commit 6d96b4f into master Jul 5, 2019
This was referenced Jul 5, 2019
@dustinsoftware dustinsoftware deleted the delayed-init branch October 4, 2019 03:19
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