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

Code Split in Gatsby #27000

Closed
developer0116 opened this issue Sep 23, 2020 · 2 comments
Closed

Code Split in Gatsby #27000

developer0116 opened this issue Sep 23, 2020 · 2 comments
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@developer0116
Copy link

Currently I am building up a website using Gatsby and I need to optimize the performance in mobile devices.

I want to minimize the main thread work, but code split is not supported in Gatsby.

Look forward to your support.

Thanks

@developer0116 developer0116 added the type: feature or enhancement Issue that is not a bug and requests the addition of a new feature or enhancement. label Sep 23, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Sep 23, 2020
@usamahbass
Copy link

usamahbass commented Sep 23, 2020

Hay @developer0116 try you back to this issue #11960 or this link https://www.gatsbyjs.com/docs/how-code-splitting-works or #18689 , hope it can help :)

@LekoArts LekoArts added type: question or discussion Issue discussing or asking a question about Gatsby and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer type: feature or enhancement Issue that is not a bug and requests the addition of a new feature or enhancement. labels Sep 23, 2020
@LekoArts
Copy link
Contributor

Thank you for opening this!

As https://www.gatsbyjs.com/docs/how-code-splitting-works/ explains Gatsby supports and does code-splitting by default. If you further want to remove expensive parts from the initial bundle you can lazy-load those pieces. For example with loadable-components or React.lazy().

We're marking this issue as answered and closing it for now but please feel free to comment here if you would like to continue this discussion. We also recommend heading over to our communities if you have questions that are not bug reports or feature requests. We hope we managed to help and thank you for using Gatsby!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants