GoogleChromeLabs / first-input-delay

A JavaScript library for measuring First Input Delay (FID) in the browser.
https://developers.google.com/web/updates/2018/05/first-input-delay
Apache License 2.0
349 stars 63 forks source link

Better to a add a note/comment to inline the js in the head #14

Closed tufandevrim closed 5 years ago

tufandevrim commented 5 years ago

https://github.com/GoogleChromeLabs/first-input-delay/blob/e117bc890448b2b6afe09536694b83b1b1e20f0b/demo/index.html#L1

samarpanda commented 5 years ago

But its already mentioned in the readme usage doc i.e

Since it's less than 400 bytes (gzipped), we recommended you inline it directly into your document to avoid a blocking request.

philipwalton commented 5 years ago

Closed via b79ae924bd6ee51cd19fdfd32e8d670012330db3. I agree it's clear in the README but I suppose it can't hurt to add a second warning to the demo source.