RTO_detector.js

Helper file documentation for RTO_detector.js.
Docs updated: 2026-03-24

Summary

Small helper to detect the extension once.

  • Exports: RTOdetectOnce, RTOdetected
  • Depends on: RTO_form_api.js

What it is

A tiny helper that calls RTOForm.detect(timeoutMs) once and caches the result in window.RTOdetected.

This helper expects the current Form API signature: detect(timeoutMs:number) (not an options object).

Download

Download RTO_detector.js

Example

<script src="../RTO_helpers/RTO_form_api.js"></script>
<script src="../RTO_helpers/RTO_detector.js"></script>
<script>
  RTOdetectOnce(1500).then(function(ok){
    console.log("detected?", ok, "cached:", window.RTOdetected);
  });
</script>

Next