Closed
Description
To some it might be obvious, but the readme does not mention when to load the library. It mentions install, it mentions how to use (the methods of the lib), integrations in other stuff, but not "when to load".
Only in this Codelab it is mentioned
Copy this module script, and paste it just before the closing
</body>
tag.
Not everyone reads this Codelab, and I also don't think everyone using the web-vitals
knows what to do best.
Questions like:
- "Can/Should I lazy load the lib?"
- "Do I need to load it as early as possible to not miss any values?"
- "Do I register the callbacks on DOMContentLoaded/onLoad/using requestIdleCallback?"
are open questions I can think of in the environment of performance, because there is no guideline.
Metadata
Metadata
Assignees
Labels
No labels