So I learned how to debug ealy hints in server. Few options:
a) https://code103.hotmann.de/
b) curl -k -v —http2 mydomain.com | grep 103
Cool!
Now I want to debug how that affects my page rendering in Chrome. Here the four challanges I am facing:
a) performance.getEntriesByName('https://mydomain.com/asset.jpg')[0].initiatorType
→ this is the closest I got to extracting any infro from chrome on early hints. My problem with this is sometimes it returns link
, sometimes early-hints
. Am wondering if it’s related to wether the resources was loaded from browser cache or to what?
b) In Chrome 107 beta after each pageload of url with early hints I get a warning message: The resource <url> was preloaded using link preload in Early Hints but not used within a few seconds from the window's load event.
What does it mean and how to get rid of it?
c) How to get any profiling data? And chrome devtools those assets are shown as stated to load after the initial response been delivered. I want to see the change as shown here: Early Hints update: How Cloudflare, Google, and Shopify are working together to build a faster Internet for everyone (https://blog.cloudflare.com/content/images/2022/06/image3-18.png vs https://blog.cloudflare.com/content/images/2022/06/image5-9.png ) either in visual, or in profiling metrics. I cant reproduce this in any way. Any ideas how to achieve this proof that early hinted assets started loading earlier?
d) Last, not least - I’d like to see lighthouse producing that profiling data, will dig into this and update if I manage to extract anything on early hints from there.
Thanks a lot!
P.S. Similar discussion, leaving as a reference: HTTP 103 Early Hints: How to diagnose if they are correctly set by Cloudflare and respected by Chrome? - #19 .