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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move file-level imports to dynamic imports to reduce initial bundle size #1379

Merged
merged 1 commit into from Dec 20, 2018

Conversation

benhalpern
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Documentation Update

Description

By moving the import from the top of the file to dynamic imports, we should be able to radically reduce the size of our initial bundle.

Hope this works as expected. 馃

@benhalpern benhalpern merged commit 0c910ba into master Dec 20, 2018
@maestromac maestromac deleted the ben/js-performance-gardening branch December 20, 2018 19:21
@@ -1,32 +1,35 @@
import Pusher from 'pusher-js';
// import Pusher from 'pusher-js';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a dead code to me. I guess it could be removed.

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.

None yet

2 participants