-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Hoist AMP script preload for minor performance improvement 🛥️ #7184
Hoist AMP script preload for minor performance improvement 🛥️ #7184
Conversation
🦋 Changeset detectedLatest commit: d96d8bf The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/amp/index.js
Outdated
@@ -1,7 +1,7 @@ | |||
// https://amp.dev/documentation/guides-and-tutorials/learn/spec/amp-boilerplate/ | |||
const boilerplate = ` | |||
<link rel="preload" as="script" href="https://cdn.ampproject.org/v0.js" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should use a tab instead of spaces to align with the other lines
I can't believe this would make any difference. However, if we were going to make this change, wouldn't you also want to move up |
It does seem doubtful that it would make any difference, and it's very surprising to me that the |
Sorry, actually I thought this would have very minor performance improvement because it would have least small improvement than current implementation of adding |
Ok, I actually made these changes after viewing them on next js implementation of AMP.
|
thanks! |
🤝💪 |
Hoist AMP script preload for minor performance improvement.
Sorry if I made any mistakes :(