Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Trusted Types with DOMPurify #417

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andreituicu
Copy link

@andreituicu andreituicu commented Oct 16, 2024

Building on top of #228 using the new Trusted Types API, that is currently supported just by Chrome.

Test urls:
Before: https://main--aem-boilerplate--adobe.aem.live/
After: https://trusted-types--helix-project-boilerplate--andreituicu.aem.live/

Copy link

aem-code-sync bot commented Oct 22, 2024

Page Scores Audits Google
📱 / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

@andreituicu
Copy link
Author

Deep PSI:

  1. FCP: 976 (1018 ± 28.002)
  2. LCP: 1051 (1131 ± 146.237)
  3. SI: 976 (1018 ± 28.002)

The impact of ~10% increase of FCP/LCP/SI compared to the baseline we normally see on the boilerplate is expected, given the +9KB for DOMPurify as a rendering blocking resource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant