Skip to content

docs: add <script nomodule> iife fallback to recommended snippets#41

Open
forgetso wants to merge 1 commit into
mainfrom
docs/iife-nomodule-fallback
Open

docs: add <script nomodule> iife fallback to recommended snippets#41
forgetso wants to merge 1 commit into
mainfrom
docs/iife-nomodule-fallback

Conversation

@forgetso
Copy link
Copy Markdown
Member

Summary

  • Add <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).
  • Mirrors the friendly-challenge pattern. Crawlers and runtimes that don't execute 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.
  • Where the snippet was previously a bare <script src=...> (basics/index, basics/invisible-captcha), upgraded to <script type="module" src=...> so the nomodule fallback semantics actually apply.

Pairs with

Test plan

🤖 Generated with Claude Code

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>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 26, 2026

Deploy Preview for peaceful-pothos-9e62ce ready!

Name Link
🔨 Latest commit 3857efc
🔍 Latest deploy log https://app.netlify.com/projects/peaceful-pothos-9e62ce/deploys/6a161eff81e2bb000718a3cc
😎 Deploy Preview https://deploy-preview-41--peaceful-pothos-9e62ce.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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