-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Build: Async Load Happy Chat, CSS Reload, Network detection (take 2) #11868
Conversation
72e6baa
to
6241acb
Compare
This reverts commit 1008869.
6241acb
to
9d09ec7
Compare
Seems to be working properly 👍 Can I have some background info on the reason it was reverted? |
Splitting the bundle also ends up duplicating the flux store that backs HappyChat. I had thought that this duplication led to two instances of the flux store being active at the same time, but that fear turned out to be incorrect. Webpack registers modules by ID and the first one registered wins. Any subsequent module with the same ID is just ignored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
This reverts commit 1008869.
A retry of #11714
Shaves 25kb off the gzip'd build bundle (424kb ➡️ 399kb). Needs more testing to verify it 1) works as expected and 2) uses a reasonable placeholder for the chat box while loading.
Most of the reason for the size diff here is that happy-chat is the only thing in boot using socket.io, which is a pretty big package itself, even after gzip. Necessary, but large.