Skip to content

Lazy load (chunking) feature? #925

Closed
@sandervanhooft

Description

@sandervanhooft

How can I implement lazy loading?

Would this require (create-react-app-impossiblish) webpack configuration modifications?

As my app is growing (.js > 1mB), the initial load takes longer, especially on mobile connections. So lazy loading of code chunks would provide a great performance boost.

Activity

gaearon

gaearon commented on Oct 18, 2016

@gaearon
Contributor

You can use require.ensure() because we use webpack under the hood.
When we switch to webpack 2, you can use System.import instead.

sandervanhooft

sandervanhooft commented on Oct 18, 2016

@sandervanhooft
Author

That's great, thanks! :)

locked and limited conversation to collaborators on Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gaearon@sandervanhooft

        Issue actions

          Lazy load (chunking) feature? · Issue #925 · facebook/create-react-app