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
  • JavaScript Optimization

JavaScript Optimization

SpeedyGo provides four layers of JavaScript optimization: minification (smaller files), combination (fewer requests), deferral (non-blocking load), and interaction delay (maximum score boost). Each can be enabled independently.

Dashboard path: Cache Settings → Asset Optimization
Sections: Asset Optimization · CSS & JS Optimization · JS Interaction & Compression

JavaScript Optimization
Popup Image

Settings Reference #

SettingPlanSectionDescription
JavaScript MinificationFree + ProAsset OptimizationCompress JS by removing whitespace, comments, and shortening variable names.
Combine JSFree + ProCSS & JS OptimizationMerge multiple JS files into one to reduce HTTP requests.
Exclude JS Files (Combine)Free + ProCSS & JS OptimizationFiles to keep separate during combination.
Defer ScriptsFree + ProCSS & JS OptimizationAdd defer to script tags — stops JS blocking page render.
Exclude JS Files (Defer)Free + ProCSS & JS OptimizationScripts that must execute immediately — not deferred.
JS Interaction DelayPro onlyJS Interaction & CompressionHold back all non-critical JS until user first interacts.
Gzip CompressionFree + ProJS Interaction & CompressionServer-side Gzip compression for JS and other assets.
Brotli CompressionFree + ProJS Interaction & CompressionModern BR compression (~15–20% better than Gzip).

JavaScript Minification #

Strips whitespace, comments, and shortens internal variable names. Safe for the vast majority of sites.

How to Enable #

  1. Go to Cache Settings → Asset Optimization.
  2. Toggle JavaScript Minification to ON.
  3. Save and test the site.

Combine JS #

Merges all WordPress-enqueued scripts into one file. Reduces the number of network requests, especially beneficial on HTTP/1.1.

How to Enable #

  1. Toggle Combine JS to ON.
  2. Save and thoroughly test: menus, popups, sliders, checkout, forms.
  3. Add problematic scripts to Exclude JS Files.

Exclude JS Files #

/wp-content/plugins/woocommerce/assets/js/frontend/
/wp-content/themes/my-theme/critical.js
jquery

Defer Scripts #

Adds defer to script tags so they download in parallel but execute after HTML parsing. Directly fixes the PageSpeed “eliminate render-blocking resources” warning.

See the dedicated article: Defer Scripts

JS Interaction Delay (Pro only)#

The most aggressive JavaScript optimization. All non-critical scripts are held completely until the user first interacts (scroll, click, keypress). This can dramatically improve TBT and LCP scores on the first page load.

When to Use #

Site typeRecommendation
Blog, landing page, content site✅ Safe to enable
WooCommerce store⚠️ Test thoroughly — cart and checkout JS must still work
Site with JS-powered above-the-fold content⚠️ Test; may delay visible elements
Complex web application❌ Not recommended

How to Enable (Pro) #

  1. Go to Cache Settings → Asset Optimization.
  2. Under JS Interaction & Compression, toggle JS Interaction Delay to ON.
  3. Save and test every interactive element on the site.

Gzip and Brotli Compression #

Server-side compression reduces the transfer size of JS (and all other) assets before they reach the browser.

SettingReductionServer requirement
Gzip~60–80%Supported by all servers
Brotli~70–90%Nginx 1.11.6+ or Apache with mod_brotli

Enable both — browsers that support Brotli will use it; others fall back to Gzip automatically.

Recommended Sequence #

Enable in this order to catch issues early:

  1. JavaScript Minification — low risk, high reward
  2. Gzip Compression — universally safe
  3. Brotli Compression — safe if server supports it
  4. Combine JS — test thoroughly before and after
  5. Defer Scripts — test all interactive elements
  6. JS Interaction Delay (Pro) — test last; most aggressive

Troubleshooting #

SymptomLikely causeFix
Console JS errors after enablingCombine JS or Minification conflictAdd the named script to Exclude JS Files
Menu / slider brokenDefer order issueExclude the theme’s main JS from Defer
Cart not updating (WooCommerce)WooCommerce JS affectedExclude woocommerce from Combine JS
Site interactive only after scrollJS Interaction Delay holding back critical scriptsDisable JS Interaction Delay or exclude critical scripts
Updated on May 26, 2026

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
CSS OptimizationJS Interaction Delay
Table of Contents
  • Settings Reference
  • JavaScript Minification
    • How to Enable
  • Combine JS
    • How to Enable
    • Exclude JS Files
  • Defer Scripts
  • JS Interaction Delay (Pro only)
    • When to Use
    • How to Enable (Pro)
  • Gzip and Brotli Compression
  • Recommended Sequence
  • Troubleshooting
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