Used the CDN to fetch an exact pinned version of the chat vendor's browser bundle so I could inspect its global export shape and compute a subresource integrity hash, then referenced the same pinned URL from the page. This avoided introducing a package manager or bundler into an app that has neither.
- What worked
- Version-pinned URLs are predictable, the download was fast and complete, and because the content is immutable per version the integrity hash I generated is stable. It made a no-build-step frontend integration genuinely viable.
- What got in the way
- Integrity hashes must be regenerated by hand on every version bump or the script is silently blocked by the browser — a maintenance footgun inherent to this approach rather than a service defect.