question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

I checked that…

  • … the documentation does not mention anything about my problem
  • … the problem doesn’t occur with the default MkDocs template
  • … the problem is not in any of my customizations (CSS, JS, template)
  • … there are no open or closed issues that are related to my problem

Description

The theme currently has <link rel="preconnect dns-prefetch" href="https://www.google-analytics.com"> in the head. The Google Analytics integration follows immediately afterwards so there is no need to preconnect so I think this can be removed. Furthermore, I think Safari does not accept more than one value for link rel so neither would be used. REF: https://web.dev/preconnect-and-dns-prefetch/#resolve-domain-name-early-with-reldns-prefetch

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
squidfunkcommented, Jun 7, 2020

Released as part of 5.2.3

0reactions
squidfunkcommented, Jun 7, 2020

Fixed in 1df750a9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Prefetching and Preconnects to Increase Speed
Your site is being slowed down because it's making connections to other websites to request resources such as Google Analytics and Google Fonts....
Read more >
how to preconnect or prefetch google analytics
In order to add preconnect for Google Analytics you can insert this code. <link rel="preconnect" href="https://www.google-analytics.com/">.
Read more >
Make sure the dns-prefetch is removed, too - WordPress.org
The plugin's “Remove Google Fonts” feature is dope, however it's not perfect. I was able to spot one last link element to Google...
Read more >
Dns-prefetch & Preconnect: 7 Tips, Tricks and Pitfalls - Medium
We can either specify it in the document markup or via the HTTP Link header: Markup: <link rel="preconnect" href="https://www.vrbo.com">; Link ...
Read more >
Establish network connections early to improve perceived ...
This post explains how to achieve that with two resource hints: <link rel=preconnect> and <link rel=dns-prefetch> .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found