Google PageSpeed

Google PageSpeed ​​indicates that the stub script is blocking the rendering of the page and that this has an impact on SEO. Is it possible to load it asynchronously or put it in the footer?

The stub script is part of the Transparency & Consent Framework standard. This relatively light script firstly allows you to indicate to other scripts on your site that a CMP is installed and that they can interact with it.

It also allows scripts to call the various commands of the CMP before the latter is fully loaded (asynchronously). Without this, the scripts on your site could not interact with the CMP, read the consent information of your users and therefore take it into account for their processing.

For these reasons, it is essential that this stub is integrated as high as possible in the tag of your site and always synchronously.

Last updated