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 Combination

JavaScript Combination

JavaScript Combination (Combine JS) merges all WordPress-enqueued script files into a single JavaScript file. This reduces the number of HTTP requests the browser must make to load the page, which is especially beneficial on HTTP/1.1 connections where each request has significant overhead.

Dashboard path: Cache Settings → Asset Optimization
Section: CSS & JS Optimization

JavaScript Combination

Settings #

SettingTypeDescription
Combine JSToggleMerges all enqueued JavaScript files into one bundled file.
Exclude JS FilesText areaOne file path or URL keyword per line. Files matching these are kept separate and not merged.

How It Works #

WordPress loads scripts by enqueueing them individually — a typical site can have 10–30 separate JS files. With Combine JS enabled, SpeedyGo concatenates all of them into one file before serving the page. The browser makes one request instead of many.

Performance Impact #

MetricTypical improvement
Number of HTTP requestsReduced by 60–90% for JS
Page load time (HTTP/1.1)Noticeable improvement
Page load time (HTTP/2)Smaller improvement (HTTP/2 handles parallel requests efficiently)

How to Enable #

  1. Go to Cache Settings → Asset Optimization.
  2. Under CSS & JS Optimization, toggle Combine JS to ON.
  3. Click Save Changes.
  4. Test thoroughly: navigation menus, sliders, popups, forms, WooCommerce cart, checkout.
  5. For any broken feature, identify the script causing it (browser DevTools console) and add it to Exclude JS Files.

Exclude JS Files #

Enter one file path or URL keyword per line. Partial matches work.

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

Scripts whose paths contain any of these strings are kept separate and loaded normally.

Common Scripts to Exclude #

ScriptWhy exclude
jQuerySome themes require jQuery to load before their own scripts — combining can break the order
WooCommerce checkout JSPayment processing scripts often have strict load requirements
Stripe / PayPalPayment provider scripts must be loaded from their own CDN
Google reCAPTCHAExternally loaded — cannot be combined
Chat widgets (Crisp, Intercom, Zendesk)Load from external CDN; combining breaks them

HTTP/2 Consideration #

On HTTP/2 servers, the browser can load multiple JS files in parallel at little extra cost. Combine JS provides less benefit and more risk on HTTP/2. Check with your host whether HTTP/2 is enabled:

  • If HTTP/2 is enabled → consider skipping Combine JS and using Minification + Defer Scripts instead
  • If HTTP/1.1 → Combine JS provides the largest benefit

Troubleshooting #

SymptomLikely causeFix
JS console errors on loadScript load-order broken by combinationIdentify the script in DevTools and add it to Exclude JS Files
Navigation menu not workingTheme JS depends on separate jQuery loadExclude jquery from combination
Slider / carousel brokenSlider script depends on another script being loaded firstExclude the slider plugin’s JS folder
Payment form not submittingPayment gateway JS combined incorrectlyExclude payment provider scripts (stripe, paypal, etc.)

Tips #

Warning: Combine JS is the most likely Asset Optimization setting to cause conflicts. Always test the full site — menus, sliders, forms, checkout — before considering the task done.

Tip: Enable JavaScript Minification alongside Combine JS for maximum JS size reduction with a single merged and minified bundle.

Updated on May 25, 2026

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
JS Interaction DelayCSS Combination
Table of Contents
  • Settings
  • How It Works
  • Performance Impact
  • How to Enable
  • Exclude JS Files
  • Common Scripts to Exclude
  • HTTP/2 Consideration
  • 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