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

simplify preconnect and remove prefetch #914

Merged
merged 1 commit into from
Dec 20, 2024
Merged

simplify preconnect and remove prefetch #914

merged 1 commit into from
Dec 20, 2024

Conversation

cjyabraham
Copy link
Collaborator

@cjyabraham cjyabraham commented Dec 16, 2024

#913

Dev instance

This simplifies the preconnect/prefetch function and removes prefetches in favor of preconnect.

Before:

<link rel='dns-prefetch' href='//www.cncf.io' />
<link rel='dns-prefetch' href='//js.hs-scripts.com' />
<link rel='dns-prefetch' href='//cmp.osano.com' />
<link crossorigin='' href='//www.googletagmanager.com' rel='preconnect' />
<link crossorigin='' href='//www.gstatic.com' rel='preconnect' />
<link crossorigin href='//js.hscollectedforms.net' rel='preconnect' />
<link crossorigin href='//js.hs-banner.com' rel='preconnect' />
<link crossorigin href='//js.hs-analytics.net' rel='preconnect' />
<link crossorigin href='//js.hsforms.net' rel='preconnect' />
<link crossorigin href='//js.hs-scripts.com' rel='preconnect' />
<link crossorigin href='//landscape.cncf.io' rel='preconnect' />
<link crossorigin href='//cmp.osano.com' rel='preconnect' />
<link crossorigin href='//consent.api.osano.com' rel='preconnect' />

After:

<link rel='dns-prefetch' href='//pr-914-cncfci.pantheonsite.io' />
<link crossorigin href='//js.hscollectedforms.net' rel='preconnect' />
<link crossorigin href='//js.hs-banner.com' rel='preconnect' />
<link crossorigin href='//js.hs-analytics.net' rel='preconnect' />
<link crossorigin href='//js.hsforms.net' rel='preconnect' />
<link crossorigin href='//js.hs-scripts.com' rel='preconnect' />
<link crossorigin href='//landscape.cncf.io' rel='preconnect' />
<link crossorigin href='//cmp.osano.com' rel='preconnect' />
<link crossorigin href='//consent.api.osano.com' rel='preconnect' />
<link crossorigin href='//www.googletagmanager.com' rel='preconnect' />
<link crossorigin href='//www.gstatic.com' rel='preconnect' />
<link crossorigin href='//browser-update.org' rel='preconnect' />
<link crossorigin href='//js-agent.newrelic.com' rel='preconnect' />

@cjyabraham cjyabraham requested a review from thetwopct December 16, 2024 22:02
@cjyabraham cjyabraham merged commit 87dd1b6 into main Dec 20, 2024
5 checks passed
@cjyabraham cjyabraham deleted the preconnect branch December 20, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants