Reduce WoodMart JavaScript bloat on WooCommerce storefronts
For WooCommerce stores where poor INP and slow interactivity trace back to theme, plugin and tag-manager JavaScript.

WoodMart script bloat is JavaScript for features many stores barely use (sliders, quick view, wishlist, compare, swatches) with third-party tags piled on top. That bundle ties up the main thread, the browser's single lane for running scripts and responding to taps, so it hurts INP and delays the first interaction. The fix starts with finding which scripts a page actually uses. A Next.js storefront goes further and ships a much smaller JavaScript budget per page.
Where the JavaScript comes from
On a typical WoodMart store the main-thread cost is a stack of four sources: the theme's own modules, WooCommerce cart and fragment scripts, plugin JavaScript (filters, reviews, wishlist), and marketing tags loaded through a tag manager. Much of it loads on every page, product pages included, before the shopper can interact.
Why it shows up as poor INP
INP (Interaction to Next Paint) measures how quickly the page responds to taps and clicks, and Google's bar is under 200 milliseconds at the 75th percentile of real mobile visits. When too much JavaScript is running or waiting in the queue, that response is delayed:
- Long tasks block the main thread during and after load
- Scripts run on pages that don't use their feature
- Tag managers add third-party JS you don't fully control
- Hydration of heavy theme widgets delays interactivity
When trimming WoodMart is enough
If a handful of scripts cause most of the cost, trim them in place: disable unused modules, defer non-critical scripts and clean up the tag manager. Group requests by origin in the Chrome DevTools Network panel first. That breakdown by source is where third-party weight stops being a matter of opinion, and it tells you whether trimming will be enough.
A page-specific JavaScript budget
A Next.js storefront ships only the JavaScript a given page needs, and renders the HTML up front so content is usable before scripts run. Interactive pieces load on demand instead of in one site-wide bundle, and that is what moves INP the most.
The WoodMart features you pay for in JavaScript
WoodMart bundles a long list of interactive features, and each one ships script whether the store uses it or not: the mega menu, product-image hover swaps, quick shop and quick view, 360-degree and video galleries, countdown timers, a sticky add-to-cart bar, back-to-top, a cookie bar, a currency switcher and animation on scroll. Most stores use a handful of these and pay the runtime cost of all of them. The first and cheapest win is to check which are enabled and turn off the ones the store does not use. Do that before touching architecture.
- List which WoodMart interactive modules are actually enabled
- Disable hover swaps, 360 view, timers and animations you do not use
- Keep only the features that support browsing and buying
- Measure the JavaScript saved per template after each toggle
Third-party tags: the other half of the budget
Third-party tags are the other half of the main-thread cost, which is why even a trimmed theme can feel sluggish. A tag manager often loads analytics, ad pixels, a chat widget, a reviews script and remarketing tags, much of it early and some of it synchronously, and all of it competes with the shopper's first tap. Load them deliberately. Defer what is not needed immediately. Gate marketing tags behind consent, which in Google Tag Manager means consent-mode defaults set before any tag fires rather than a checkbox read afterward. Load campaign-specific scripts only on the pages where campaigns run. You keep the data and move its cost off the critical path.
A JavaScript budget with numbers
Cutting scripts works best against a written target. Set a per-template JavaScript budget: a ceiling on the kilobytes shipped and on the main-thread time spent before a page is interactive. Then measure against it. The Coverage tab in Chrome DevTools shows how much of the loaded JavaScript a template actually uses, which exposes scripts that load and never run. The Performance panel shows total blocking time (how long the main thread was too busy to respond) and the long tasks behind poor INP. Once the budget is on paper, every new tag or widget has to earn its place against a number.
- Set a per-template JS size and main-thread budget
- Use the Coverage tab to find loaded-but-unused JavaScript
- Watch total blocking time and long tasks for INP
- Make each new tag justify itself against the budget
Migrating the interactive pieces
The interactions that matter, such as add-to-cart, the gallery and filters, are rebuilt as lean components, and the rest of the theme runtime is dropped. WooCommerce still serves the data; the storefront just stops shipping JavaScript shoppers never use. Test the assumption before paying for the fix. Disable the theme bundle on staging, and if INP does not move measurably, the weight is somewhere else and a new storefront will not remove it.
Frequently asked questions
Why is my INP still poor after optimizing images?
Because INP is about JavaScript on the main thread, not images. Theme, plugin and tag-manager scripts are the usual cause, and image work does not touch them.
Can I reduce WoodMart JavaScript without changing themes?
Partly, yes. Disabling unused modules and deferring scripts helps. A shared theme bundle still sets a floor that a Next.js per-page budget clears more fully.
Will I lose features like quick view or wishlist?
No. The ones you use are rebuilt as components; only unused scripts are dropped.
Will cutting scripts break my Google Analytics or ad tracking?
No. Tags are reorganized and deferred, and no analytics are removed. You keep the data at a lower main-thread cost.
WoodMart page builder bloat
Cut the nested markup, duplicated CSS and shortcode scripts WoodMart's page builder leaves on your pages by rebuilding the layout as lean Next.js components.
WoodMart Core Web Vitals
Pass Core Web Vitals on a WoodMart store: LCP under 2.5s, INP under 200ms, CLS under 0.1. Fix what the theme allows, rebuild the frontend when it can't.
WoodMart to Next.js migration
How to migrate a WoodMart store to a Next.js storefront: extract theme options, WPBakery or Elementor layouts, HTML Blocks and swatches, then rebuild them.
See how many sales your store is losing
Start with a free speed audit. You'll get your store's real numbers and an honest recommendation — even if it's "you don't need us".