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.

Audit: false positive for preconnect/dns-prefetch suggestion

See original GitHub issue

OMG. Finally moved off tumblr.com for my blog! I built a dope site but want to make The House the happiest it can be.

I’m using `link rel=preconnect" for a couple of domains, but LH re-suggests that to me as an improvement :\

Provide the steps to reproduce

  1. Run LH 3.0.3 on https://ericbidelman.com

What is the current behavior?

Perf > Opportunities says that I should use dns-prefetch and/or connect to reduce RTTs to origins:

screen shot 2018-08-29 at 2 57 09 pm

What is the expected behavior?

I’m already using preconnect for both these origins:

screen shot 2018-08-29 at 2 57 21 pm

Not sure if the audit already does this, but we we could look at the DOM for link rel=preconnect|dns-prefetch and remove any origins users are already preconnecting to.

Environment Information

  • Lighthouse version: 3.0.3

Related issues

Report: https://googlechrome.github.io/lighthouse/viewer/?gist=4bd3bf89ce0ac69319db6cf1e9b94a83

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:17

github_iconTop GitHub Comments

3reactions
stephen-lastcommented, Nov 15, 2018

I think I’m seeing the same. The report has Lighthouse 4.0.0-alpha.1 at the top.

I’m using the Lighthouse Chrome ext:

ps3

I have some preconnect link’s in the HTML:

ps2

But Lighthouse is suggesting I add them:

ps1

2reactions
patrickhulcecommented, Feb 7, 2020

@dawsbot in this WebPageTest result (https://webpagetest.org/result/200207_1J_c1f01a929bb96dde1265c14cd44ffd56/1/details/#waterfall_view_step1) without Lighthouse involved, those origins were not preconnected, so it would appear that Lighthouse is correctly flagging this situation. It’s worth noting that Chrome started ignoring preconnect directives in slow network conditions when there too many, so we’ve changed our advice to only preconnect to the 2 most important origins in the upcoming release of Lighthouse. I’d guess this is the situation we find ourselves in now and why Brave might be still preconnecting if it’s a Chrome-specific trial.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nicolas Hoizey on Twitter: "@__si_mon @____lighthouse Thanks ...
Audit : false positive for preconnect/dns-prefetch suggestion · Issue #5932 · GoogleChrome/lighthouse. OMG. Finally moved off tumblr.com for my blog!
Read more >
Establish network connections early to improve perceived ...
Using dns-prefetch and preconnect allows sites to reduce the amount of time it takes to connect to another origin. The ultimate aim is...
Read more >
Newest 'preconnect' Questions - Stack Overflow
I am trying to use a preconnect link (or a dns-prefetch link) to get Chrome to perform DNS resolution and ideally open the...
Read more >
Google Lighthouse Not Recognizing Preconnect And Dns ...
Ask questionsAudit: false positive for preconnect/dnsprefetch suggestion. OMG. ... How to improve web performance by using Preload Preconnect Prefetch.
Read more >
Web Performance Auditing - Learn With Jason
Web Performance Auditing (with Tim Kadlec) ... Pre-connect and pre-fetch, that's -- so DNS pre-fetch would say I know I'm going to make...
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