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

feat(gatsby-script): Off main thread implementation #35490

Merged
merged 15 commits into from
May 9, 2022

Conversation

tyhopp
Copy link
Contributor

@tyhopp tyhopp commented Apr 26, 2022

Description

Implementation for the off-main-thread script loading strategy. See the RFC for full details.

Documentation

Included in #35509

Related Issues

[sc-48943]

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 26, 2022
@tyhopp tyhopp added topic: performance Related to runtime & build performance type: feature or enhancement Issue that is not a bug and requests the addition of a new feature or enhancement. topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) topic: frontend Relates to frontend issues (e.g. reach/router, gatsby-link, page-loading, asset-loading, navigation) and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Apr 26, 2022
@tyhopp tyhopp added this to the Script Component milestone Apr 26, 2022
@tyhopp tyhopp marked this pull request as draft April 26, 2022 05:26
@tyhopp tyhopp mentioned this pull request Apr 28, 2022
12 tasks
@tyhopp tyhopp changed the title feat(gatsby-script): Partytown implementation feat(gatsby-script): Off main thread implementation May 9, 2022
@tyhopp tyhopp marked this pull request as ready for review May 9, 2022 02:38
@tyhopp tyhopp merged commit 1ca553b into feat-script-component May 9, 2022
@tyhopp tyhopp deleted the feat-script-component-partytown branch May 9, 2022 02:38
tyhopp added a commit that referenced this pull request May 9, 2022
* feat(gatsby-script): Partytown internal plugin

* feat(gatsby-script): Collect forward props

* chore(gatsby-script): Update e2e test to import from gatsby core

* chore(gatsby-script): Remove alpha version in core package json

* chore(gatsby-script): Define latest gatsby-script in package.json instead

* chore(gatsby-script): Lock gatsby-script dep to specific version

* refactor(gatsby-script): Do not pass collected scripts to avoid re-renders in SSR

* feat(gatsby-script): Collect scripts per page

* chore(gatsby-script): Bump alpha

* feat(gatsby-script): Proxy Partytown src urls

* chore(gatsby-script): Bump alpha

* chore(gatsby-script): Test redirects

* feat(gatsby-script): Conditionally inject Partytown snippet

* feat(gatsby-script): Gatsby serve support

* chore(gatsby-script): Remove test redirect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: core Relates to Gatsby's core (e.g. page loading, reporter, state machine) topic: frontend Relates to frontend issues (e.g. reach/router, gatsby-link, page-loading, asset-loading, navigation) topic: performance Related to runtime & build performance type: feature or enhancement Issue that is not a bug and requests the addition of a new feature or enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants