Skip to content

Wait to load turnstile until user interacts with Touchpoints form#2105

Open
sanason wants to merge 1 commit into
mainfrom
lazy-load-turnstile
Open

Wait to load turnstile until user interacts with Touchpoints form#2105
sanason wants to merge 1 commit into
mainfrom
lazy-load-turnstile

Conversation

@sanason

@sanason sanason commented Jul 24, 2026

Copy link
Copy Markdown
Member

For embedded Touchpoints forms, most users who visit the page containing the form will never actually interact with the form. This PR delays triggering all of the Cloudflare Turnstile processing until the user has given some indication that they might try to respond to the Touchpoints form. Two benefits:

  1. Avoids the overhead of loading the Turnstile script and running a challenge for most visits to the page containing the form.
  2. Prevents noise in our Turnstile analytics. Right now, we're seeing hundreds of thousands of (non-interactive) challenges solved every day for less than 20 form submissions. I'd like to see numbers that only reflect humans (or bots) who have interacted with the form.

@sanason
sanason force-pushed the lazy-load-turnstile branch from d4c0383 to 4642deb Compare July 24, 2026 15:46
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