Skip to content

feat!: Remove script preloading #134

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

Merged
merged 6 commits into from
May 24, 2022
Merged

feat!: Remove script preloading #134

merged 6 commits into from
May 24, 2022

Conversation

sarahetter
Copy link
Contributor

As mentioned in #127 , Gatsby has removed script preloading as it was found that it was affecting performance on page load. This just does the same for our plugin.

Closes: #127

@sarahetter sarahetter added the type: feature code contributing to the implementation of a feature and/or user facing functionality label May 20, 2022
@sarahetter sarahetter requested a review from a team May 20, 2022 14:57
ericapisani
ericapisani previously approved these changes May 20, 2022
Copy link
Contributor

@ericapisani ericapisani left a comment

Choose a reason for hiding this comment

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

LGTM

import mergeWith from 'lodash.mergewith'

import {
HEADER_COMMENT,
IMMUTABLE_CACHING_HEADER,
COMMON_BUNDLES,
Copy link
Contributor

Choose a reason for hiding this comment

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

[pebble] This variable looks to be only used here, so you could remove it from the constants file as well

Copy link
Contributor

@ericapisani ericapisani left a comment

Choose a reason for hiding this comment

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

🚀

@ascorbic
Copy link
Contributor

Nice! I've edited the PR title, because this is a breaking change so needs a major bump

@ascorbic ascorbic changed the title feat: Remove script preloading feat!: Remove script preloading May 23, 2022
@sarahetter sarahetter enabled auto-merge (squash) May 24, 2022 13:44
@sarahetter sarahetter merged commit 5a0397a into main May 24, 2022
@sarahetter sarahetter deleted the remove-script-preloading branch May 24, 2022 13:52
@mwskwong
Copy link

Just in case something goes wrong, the 5.0 version is not released on npm yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove script preloading
4 participants