The current implementation of lib/src/script.ts isn’t compatible with Trusted Types, which makes it hard to use this library in projects that enforce them.
It’d be great to add support for Trusted Types so this library can be used in more security-conscious environments.