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

Preconnect or DNS Prefetch Cross-Origin Domains #4

Open
lrehmann opened this issue Nov 4, 2020 · 1 comment
Open

Preconnect or DNS Prefetch Cross-Origin Domains #4

lrehmann opened this issue Nov 4, 2020 · 1 comment

Comments

@lrehmann
Copy link

lrehmann commented Nov 4, 2020

It isn't always possible to prefetch cross-origin resources, however, some optimizations can still be made for external links by requesting the browser prefetch the dns records or preconnect to the host. Twitter has enabled such a service while hovering over tweets to external urls.
fcc gov-twitter-preconnect

I would like to propose adding a feature to appending dns-prefetch or preconnect html tags when a user hovers or begins to click off-domain url.

<link rel="preconnect" href="https://example.com">
<link rel="dns-prefetch" href="https://example.com">
@gijo-varghese
Copy link
Owner

@lrehmann this sounds good. Will consider adding it

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

No branches or pull requests

2 participants