Unlock Special Pricing for a Limited Time – GET 70% OFF NOW!

SpeedyGo
  • Feature
  • Pricing
  • Blog
  • Documentation
  • FAQ
  • Run Test
  • Login
It's Free Download Now
Login

Caching & Preloading

  • optimization presets
  • Scheduled Expiration & Auto Purge
  • Cache Warm-Up
  • Cache Preloading
  • Mobile Caching
  • Object Caching
  • Browser Caching
  • Full-Page Caching

Asset Optimization

  • CSS Optimization
  • JavaScript Optimization
  • JS Interaction Delay
  • JavaScript Combination
  • CSS Combination
  • JavaScript Minification
  • CSS Minification
  • HTML Minification

Compression

  • Defer Scripts
  • Brotli Compression
  • Gzip Compression

Image Optimization (Pro)

  • image media optimization
  • cdn integration
  • Recommended Configuration (Pro Users)
  • Lazy Load
  • WebP Quality Control
  • Conversion Scope Rules
  • Enable WebP Conversion

PageSpeed & Analytics (Pro)

  • PageSpeed Analytics
  • Mobile vs Desktop Tracking
  • Google PageSpeed API Integration

System & Developer Tools

  • import export settings

Troubleshooting

  • API Key
View Categories
  • Home
  • Docs
  • Asset Optimization
  • JS Interaction Delay

JS Interaction Delay

JS Interaction Delay holds back all non-critical JavaScript until the user first interacts with the page — a scroll, click, mouse move, or keypress. This produces the highest possible initial performance scores because the browser has nothing to execute on load, resulting in near-zero Total Blocking Time (TBT).

Dashboard path: Cache Settings → Asset Optimization
Section: JS Interaction & Compression
Plan: Pro only

JS Interaction Delay

Settings #

SettingTypePlanDescription
JS Interaction DelayTogglePro onlyHolds all non-critical scripts until the user’s first interaction event.

How It Works #

Normally, JavaScript files are downloaded and executed as the browser loads the page, blocking rendering and consuming main thread time. With JS Interaction Delay:

  1. On page load, all non-critical scripts are intercepted and not executed.
  2. The page renders immediately with only HTML and CSS.
  3. The moment a user interacts (scroll, click, keypress, mouse move), the held scripts are released and execute normally.
  4. From that point forward the site behaves exactly as without the setting.

Performance Impact #

MetricTypical improvement
Total Blocking Time (TBT)Drops to near 0ms on initial load
Largest Contentful Paint (LCP)Significant improvement (no JS blocking render)
Time to Interactive (TTI)Measured after first interaction — may appear unchanged in lab tests
PageSpeed ScoreOften jumps 10–25 points

When to Use #

Site typeSafe to enable?
Blog, news site, content pages✅ Yes — no JS needed before interaction
Landing page / marketing page✅ Yes — best use case
WooCommerce product pages⚠️ Test — cart JS must still work after first interaction
WooCommerce cart / checkout❌ Exclude these pages — JS required immediately
Membership / dashboard pages❌ Not recommended — JS-heavy before interaction
Sites with above-the-fold sliders or animated heroes⚠️ Test — animation may not start until interaction

How to Enable #

  1. Go to Cache Settings → Asset Optimization.
  2. Under JS Interaction & Compression, toggle JS Interaction Delay to ON.
  3. Click Save Changes.
  4. Test every interactive element across the site — menus, cart, popups, forms, sliders.

Troubleshooting #

SymptomLikely causeFix
Site appears frozen until you scrollExpected behaviour — JS loads on first interactionThis is correct; if problematic, disable the feature
Hero slider / animation not playingSlider JS deferred until interactionConsider disabling JS Interaction Delay if animation is business-critical
WooCommerce cart not workingWooCommerce JS delayedDisable for cart and checkout pages (use Full Page Cache exclusions)
Chat widget not appearingChat JS delayed until interactionThis is often acceptable — chat widgets load on first scroll
JS errors after interactionScript dependency order brokenDisable JS Interaction Delay; switch to Defer Scripts instead

Tips #

Note: JS Interaction Delay is the most aggressive JavaScript optimization available. Enable it last, after all other JS optimizations are stable and tested.

Tip: Use Defer Scripts first — it is safer and still provides major PageSpeed improvements. Switch to JS Interaction Delay only if you need the maximum possible TBT score.

Note: This feature is available on Pro plans only. Free plan users see the section labelled “Compression” without the JS Interaction Delay toggle.

Updated on May 26, 2026

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
JavaScript OptimizationJavaScript Combination
Table of Contents
  • Settings
  • How It Works
  • Performance Impact
  • When to Use
  • How to Enable
  • Troubleshooting
  • Tips
SpeedyGo
  • Support Ticket
  • Feature
  • Documentation
  • Blog
  • FAQ
  • Get SpeedyGo

SpeedyGo is built to make your WordPress site faster, lighter, and easier to manage. From caching to compression, we simplify performance so you can focus on growing your website.

©2026 SpeedyGo. All rights reserved.

  • Privacy Policy
  • Refund Policy
  • Terms and Conditions
  • Privacy Disclosure