We now track LCP source and target. In some cases, no id or url can be determined thus we store the first character of the element outer HTML (might element determining what is the element). Problem: the HTML is not escaped and set as data attribute which corrupt the DOM.
Note: the escaping is added to all facets and might slow down the rendering. Probably non significantly. If needed and for performance improvements, we could escape only the source and target, not all facets.
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.
We now track LCP source and target. In some cases, no id or url can be determined thus we store the first character of the element outer HTML (might element determining what is the element). Problem: the HTML is not escaped and set as data attribute which corrupt the DOM.
Before:
cwv-source
facet contains empty entriesAfter:
cwv-source
facet contains html elementsNote: the escaping is added to all facets and might slow down the rendering. Probably non significantly. If needed and for performance improvements, we could escape only the source and target, not all facets.