docs: add <script nomodule> iife fallback to recommended snippets#41
Open
forgetso wants to merge 1 commit into
Open
docs: add <script nomodule> iife fallback to recommended snippets#41forgetso wants to merge 1 commit into
forgetso wants to merge 1 commit into
Conversation
Add procaptcha.bundle.iife.js as a nomodule sibling to every procaptcha.bundle.js <script> tag across all 6 language docs (en, de, fr, es, it, pt-br) and all 4 affected pages (basics/index, basics/invisible-captcha, basics/client-side-rendering, demos/client-example-bundle). The iife artifact mirrors the friendly-challenge pattern: crawlers and runtimes that don't execute type="module" scripts (notably Ahrefs' renderer) will fall back to the iife and still mount the widget / expose the outbound prosopo.io link in the rendered DOM. Where the snippet was previously a bare `<script src=...>` (basics/index, invisible-captcha), the recommended pattern is also upgraded to `<script type="module" src=...>` so the nomodule fallback semantics apply. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for peaceful-pothos-9e62ce ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<script nomodule src=".../procaptcha.bundle.iife.js" async defer>as a sibling fallback to every<script type="module">Procaptcha snippet across all 6 language docs (en, de, fr, es, it, pt-br) and 4 affected pages (basics/index,basics/invisible-captcha,basics/client-side-rendering,demos/client-example-bundle).type="module"(notably Ahrefs') will fall back to the iife and still mount the widget / expose the outbound prosopo.io link in the rendered DOM.<script src=...>(basics/index,basics/invisible-captcha), upgraded to<script type="module" src=...>so the nomodule fallback semantics actually apply.Pairs with
publish_release.ymliife build (so the iife lands in future release zips by default)Test plan
basics/*anddemos/*page in en + one other locale to confirm renderinghttps://js.prosopo.io/js/procaptcha.bundle.iife.jsresolves on prod CDN once i18n(ko): Translateframework-components.mdxwithastro/docs#3388 has shipped a release🤖 Generated with Claude Code