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

enable link preconnect for google analytics plugin #392

Closed
1 of 5 tasks
thescientist13 opened this issue Jul 19, 2020 · 1 comment · Fixed by #393
Closed
1 of 5 tasks

enable link preconnect for google analytics plugin #392

thescientist13 opened this issue Jul 19, 2020 · 1 comment · Fixed by #393
Assignees
Labels
enhancement Improve something existing (e.g. no docs, new APIs, etc) Plugins Greenwood Plugins v0.8.0

Comments

@thescientist13
Copy link
Member

thescientist13 commented Jul 19, 2020

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

While working #354 I saw this recommendation for improving performance from Lighthouse to use preconnect.

preconnect-to-required-origins

Details

The recommendation is to use preconnect to improve performance when loading assets from other domains.

<link rel="preconnect" href="https://www.google-analytics.com">

It's supported in almost all major browsers so those that understand it should get a +1 Lighthouse score boost for free, from what I could see testing locally.

@thescientist13 thescientist13 added enhancement Improve something existing (e.g. no docs, new APIs, etc) Plugins Greenwood Plugins labels Jul 19, 2020
@thescientist13 thescientist13 added this to the MVP milestone Jul 19, 2020
@thescientist13 thescientist13 self-assigned this Jul 19, 2020
@thescientist13
Copy link
Member Author

Hmm, looks like the article actually favors preload instead?

In general, try to use <link rel="preload">, as it's a more comprehensive performance tweak, but do keep <link rel="preconnect"> in your toolbelt for the edge cases like:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve something existing (e.g. no docs, new APIs, etc) Plugins Greenwood Plugins v0.8.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant