feat(scripts): content performance improvements

This commit is contained in:
wanhose 2021-11-25 13:16:31 +01:00
parent 5016b334a8
commit 9bd8fb83e8

View File

@ -29,13 +29,14 @@ const hostname = document.location.hostname;
* @description Is consent preview page?
*/
const isPreview = hostname.startsWith("consent.");
const isPreview =
hostname.startsWith("consent.") || hostname.startsWith("myprivacy.");
/**
* @description Options provided to observer
*/
const options = { attributes: true, childList: true, subtree: true };
const options = { childList: true, subtree: true };
/**
* @description Selectors list