In short
Trusted Types is a browser feature, turned on through CSP, that blocks unsafe ways of inserting HTML with JavaScript (like setting innerHTML with untrusted text). PageSpeed lists it as informational; few marketing sites use it, and it requires code changes. It's worth it for apps handling user input. For most brochure sites, leave it to a developer and focus on scored checks first.
Content-Security-Policy: require-trusted-types-for 'script'
This guide isn't affiliated with or endorsed by Google.
Related issues
Sources and references
MDN, Trusted Types API

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



