Note from 24th September 2020

Looks like #Lighthouse now suggests me to preconnect to the Google Analytics domain…

Lighthouse suggests to preconnect to Google Analytics

…which I already do! 🤔

The server tells the browser to preconnect to Google Analytics

Anything wrong with my HTTP header?

8 Webmentions

1 like

7 replies

  1. $!m0n avatar $!m0n
    Github issue about it : github.com/GoogleChrome/l…
  2. Nicolas Hoizey avatar Nicolas Hoizey
    Thanks!

    TIL `crossorigin` should not be used for Google Analytics preconnect. 🤯
  3. Anthony Ricaud avatar Anthony Ricaud
    Not sure this is the same issue. Could it be because it’s a HTTP header?
  4. Nicolas Hoizey avatar Nicolas Hoizey
    I removed the `crossorigin` and Lighthouse liked it.
    I followed @patrickhulce recommendation in the issue.
  5. Anthony Ricaud avatar Anthony Ricaud
    Oops, my bad.
  6. Nicolas Hoizey avatar Nicolas Hoizey
    no pb!
  7. $!m0n avatar $!m0n
    I got the same issue few weeks ago ;-)