This page demonstrates how the AXP worker’s REMOVE_SCRIPTS action serves a bot-friendly version of your content by stripping all script tags from the HTML response.
When recognized search engine bots access this page through the AXP worker with REMOVE_SCRIPTS enabled, all script tags are removed. Human visitors see the normal, fully functional page.
All of the following are removed for bots:
<script>console.log('Analytics tracking');</script><script src="https://cdn.example.com/tracking.js"></script><Script src="/widget.js" strategy="afterInteractive" />Note: The REMOVE_SCRIPTS action strips all script tags. If you rely on any script-based enhancements for bots (e.g., inline JSON-LD), make sure you deliver equivalent static or server-rendered content for crawlers.
All static, non-JavaScript content remains fully accessible to bots:
Use a bot user agent to fetch this page and confirm script removal:
curl -A "Googlebot/2.1" https://goatcrm.org/test-scripts