Google Outlines Some Best Practices for Cookie Notices and How to Minimize Impact on CWV
https://web.devCookie consent notices are a very common source of layout shifts. This article discusses how cookie notices can affect performance, performance measurement, and user experience. Some of the things discussed include
- Load cookie notices scripts asynchronously
- Load cookie notice scripts directly
- Establish an early connection with the cookie notice origin
- Preload cookie notices as appropriate
- and more