Free tools Windows power users keep installed
One-click scans. No signup required.
The safe fix is to stop loading or executing wc-cart-fragments on routes that do not need a live legacy mini-cart, while keeping cart, checkout, account, session, and cookie behavior dynamic. First identify which theme, plugin, widget, or dependency enqueues the script. Then remove accidental global loading, use the Mini Cart Block where your theme supports it, or apply WooCommerce’s documented filter to prevent execution on unrelated pages. Test every add-to-cart and cart-update path on staging before changing production.
Antihost offers managed WordPress hosting with free migration, one-click staging and a 14-day free trial.
Cart fragments use WordPress AJAX to refresh mini-cart HTML and cart state. On a busy store, requests to admin-ajax.php can add PHP and database work to pages that have no reason to display a changing cart. WooCommerce changed the default behavior in version 7.8, but older themes, hard-coded widgets, and custom dependencies can still recreate the problem.
As an Amazon Associate I earn from qualifying purchases.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →What the cart-fragments problem actually is
WooCommerce’s legacy Cart Widget depends on a frontend script named wc-cart-fragments. The script asks the server for refreshed mini-cart markup through the WordPress admin-AJAX API, then replaces the widget’s HTML and cart indicators without a full page reload. The request can be initiated after cart events such as wc_fragment_refresh and updated_wc_div, when a browser restores a page from history, during Customizer handling, and after a timeout intended to prevent stale cart data.
The WooCommerce code reference shows that the script receives an AJAX URL, a cart-hash key, a fragment name, and a 5000 ms request timeout. A request may appear in DevTools as admin-ajax.php with an action such as get_refreshed_fragments; some implementations use a WooCommerce AJAX endpoint instead.
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
The performance issue is not that every AJAX call is inherently bad. It is that a live mini-cart can be refreshed on article, landing, or other non-commerce routes where no cart interaction is possible. Each unnecessary request consumes application workers and may query sessions, products, totals, or extensions. The impact varies with traffic, hosting, theme code, plugins, cache configuration, and whether requests are serialized behind slow PHP workers. Official WooCommerce sources do not provide a universal number of milliseconds saved, server-cost reduction, or conversion lift, so measure your own store.
Why WooCommerce 7.8 did not eliminate every case
Before WooCommerce 7.8, cart fragments were globally enqueued on WooCommerce store routes even when a page did not render a mini-cart. In 7.8, WooCommerce changed the default. The developer blog states: “Beginning with WooCommerce 7.8, we implemented a change that disables the cart fragments script from being enqueued on all page routes of a WooCommerce store by default.”
Since 7.8, the script is normally loaded when the legacy Cart Widget is rendered, when another script declares wc-cart-fragments as a dependency, or when custom code explicitly enqueues it. A theme can still hard-code the widget in a header or footer, and a plugin can still declare the dependency globally. Therefore, upgrading WooCommerce does not prove that your site is free of global fragment requests.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
Diagnose before changing anything
Use a staging copy whenever possible. The goal is to identify the exact enqueue source and to establish which pages genuinely require live cart updates.
- Capture the request. Open browser DevTools, select the Network panel, enable recording, and reproduce the slow page load in a fresh session. Filter for
wc-cart-fragments,get_refreshed_fragments,admin-ajax.php, andwc-ajax. Record the request URL, initiator, status, duration, and response size. A request that appears after the page has rendered can still consume server capacity. - Find the visible cart UI. Inspect the rendered header, sidebar, footer, and off-canvas menu for a legacy Cart Widget or a theme-built mini-cart. In the Elements panel, look for widget markup and data attributes associated with the cart. Also check whether a page builder inserted the widget outside the normal sidebar.
- Trace dependencies. Inspect the initiator stack in DevTools, then search the active theme and plugins for
wp_enqueue_script( 'wc-cart-fragments' )and for script registrations that listwc-cart-fragmentsas a dependency. A plugin may enqueue another handle whose dependency pulls fragments in indirectly. - Compare routes. Test an article or landing page, a product page, the shop, Cart, Checkout, and My Account. Note whether the request appears on pages with no mini-cart, whether it fires once or repeatedly, and whether removing the widget or dependency makes it disappear. Keep a record of cart count and mini-cart behavior on every route.
- Test interactions on staging. Add a product from a product page and an archive, change quantity, remove an item, restore a browser-history page, and complete checkout with both logged-in and guest sessions. Include any quick-view, wishlist, subscription, bundle, or custom add-to-cart flow used by your store.
Choose the least disruptive fix
There is no single switch that is correct for every store. Use the following decision points before editing code.
| Approach | Use it when | Main benefit | Main risk |
|---|---|---|---|
| Remove accidental global enqueue | A theme or plugin loads fragments on pages without a live mini-cart | Eliminates unnecessary downloads and AJAX execution at the source | A custom header or extension may depend on fragment events |
| Use the Mini Cart Block | Your current theme and extensions support WooCommerce blocks | WooCommerce documents it as an alternative to the legacy widget’s performance behavior | Markup, styling, or third-party compatibility may differ |
Scope execution with woocommerce_get_script_data |
The asset must remain available but should not execute on unrelated routes | Limits fragment work without deregistering the script globally | Non-standard pages can stop updating unless added to the condition |
| Correct cache rules | Shared page caching or a CDN is involved | Protects cart and session correctness while improving cacheability elsewhere | Overly broad exclusions reduce cache hits; missing exclusions can expose stale or wrong cart state |
Fix 1: remove an accidental global enqueue
Start with the enqueue source found in your diagnostic work. Update the theme or plugin so it registers or enqueues wc-cart-fragments only where a legacy mini-cart or equivalent fragment listener exists. Removing the handle from a page is appropriate only when that page does not need live cart updates.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Repair Windows errors before they cause bigger problemsFix Now →Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
Do not blindly deregister the script from every route. Custom mini-carts, quick-buy interfaces, and extensions may listen for fragment events or rely on the returned markup. WooCommerce documents manual enqueueing for stores that provide equivalent functionality, so a custom implementation should declare its requirement deliberately rather than depending on an accidental global load.
What to verify after removing the enqueue
- The Network panel no longer shows a fragment request on pages without a live cart UI.
- The cart count updates after add-to-cart without a hard refresh where your design promises that behavior.
- Remove-item and quantity controls update totals and notices correctly.
- Cart and Checkout still load their required scripts and session data.
- No JavaScript error appears when a customer returns with the browser Back button.
Fix 2: replace the legacy widget with the Mini Cart Block
WooCommerce’s 7.8 release notes recommend the Mini Cart Block as an alternative to the legacy widget. The block is not an automatic drop-in for every theme: confirm that the active theme supports the block editor and that payment, product, localization, accessibility, and page-builder extensions continue to work with its markup.
Migration procedure
- Duplicate the production site into staging and record the current widget’s location, styling, open/close behavior, cart count, and empty-cart message.
- In the site editor or block-enabled template area, replace the legacy Cart Widget with the Mini Cart Block in the same header, sidebar, or drawer location.
- Recreate visible options such as product thumbnails, subtotal, buttons, and display rules using the block’s available settings. Do not assume legacy widget CSS selectors still apply.
- Test desktop and mobile layouts, guest and logged-in sessions, coupons, taxes, shipping estimates, and any extension that adds cart-item data.
- Compare Network requests on non-commerce pages. Confirm that the old widget and its fragment dependency are not still present elsewhere in the template.
If an extension still requires the legacy widget or fragment events, keep the old implementation on the routes that need it and use scoped execution elsewhere instead of forcing an incomplete migration.
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
Fix 3: prevent execution on unrelated routes with the official filter
WooCommerce documents the woocommerce_get_script_data filter as a way to keep the script available while returning no data on routes that do not need it. With no script data, the fragment code does not execute there. The documented example permits normal data on WooCommerce, Cart, and Checkout pages and returns null elsewhere:
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsadd_filter( 'woocommerce_get_script_data', function( $script_data, $handle ) {
if ( 'wc-cart-fragments' === $handle ) {
if ( is_woocommerce() || is_cart() || is_checkout() ) {
return $script_data;
}
return null;
}
return $script_data;
}, 10, 2 );
Place this in a controlled site-specific plugin or the child theme rather than editing a parent theme that will be overwritten. The condition is an example, not a universal rule. Add every custom route that contains a live cart indicator, AJAX add-to-cart component, or code listening for fragment events. Conversely, do not assume that a product page is safe to disable: a product template may show a changing mini-cart even though it is not classified by your condition as a standard WooCommerce page.
Common filter mistakes
- Using only
is_woocommerce(). Cart and Checkout need explicit checks because they are separate conditional functions. - Ignoring custom landing pages. A campaign page with an add-to-cart button and header cart must be included in the allow-list.
- Applying the filter before WooCommerce is available. Put the code in a plugin or theme that loads after WordPress hooks are initialized; test for fatal errors on a clean request.
- Assuming no request means no cart update is needed. Confirm the UI behavior, not just the Network panel.
Fix 4: make caching safe for carts and sessions
JavaScript changes cannot correct a cache that serves the wrong cart state. Keep Cart, Checkout, and My Account pages dynamic. Review page-cache and CDN rules so WooCommerce session data and cart-related cookies are not stored and replayed as shared HTML.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
A cache that gives one shopper another shopper’s cart, prices, notices, or account content is a correctness and privacy failure. Configure exclusions for the cookies and session identifiers used by your WooCommerce installation, and ensure that cart fragments or equivalent cart endpoints are not cached as public responses. Cache the product, category, and editorial pages that are genuinely public, while allowing personalized cart requests to reach the application.
Cache validation checklist
- Open a private window, add a distinct product, and verify that a second session does not see the first session’s cart.
- Check that logged-in account pages never arrive from a public page cache.
- Confirm that Cart and Checkout totals change after shipping, tax, coupon, and quantity updates.
- Purge existing cache after rule changes, then repeat tests from separate devices or sessions.
- Inspect response headers to verify which requests are served from cache and which are deliberately dynamic.
How to measure whether the fix helped
Measure before and after on the same staging data and representative routes. Record the number of fragment requests, their duration, response status, and server timing. Also inspect PHP worker utilization, database load, and cache-hit behavior during a realistic test window. A reduction in browser requests is useful only if cart interactions remain correct and the server is not simply doing the same work through another endpoint.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteUse at least one page with a live mini-cart and one page without one. The expected result is not necessarily zero AJAX traffic across the whole site: Cart, Checkout, and intentionally interactive pages may still need it. Compare cold and warm cache loads, mobile and desktop layouts, guest and logged-in sessions, and a browser-history restore. Do not publish a universal savings claim; WooCommerce’s official material supplies no general benchmark.
Troubleshooting common symptoms
| Symptom | Likely cause | Action |
|---|---|---|
admin-ajax.php appears on every page after upgrading |
A theme widget, plugin dependency, or explicit enqueue still loads fragments | Use the initiator and code search to identify the loader; remove or scope it rather than assuming WooCommerce core is globally enqueueing it. |
| Cart count stops changing on a custom landing page | The filter returns null on a route that has cart behavior |
Add that route to the allow-list or restore the required script data there. |
| Mini-cart is empty until a hard refresh | The replacement UI does not listen for the store’s add-to-cart event, or fragment execution was disabled too broadly | Test the event flow, inspect console errors, and re-enable the required implementation on that route. |
| Checkout shows stale totals | Checkout or session responses are cached, or a customization removed required scripts | Exclude Checkout and WooCommerce session cookies from shared caching and retest shipping, tax, coupon, and payment updates. |
| Requests repeat after navigation | Browser-history restoration, a timeout refresh, or multiple scripts triggering fragment events | Inspect event listeners and initiators; remove duplicate enqueues and verify that only the intended cart component requests updates. |
| Switching to the Mini Cart Block breaks styling or an extension | Legacy selectors or widget-specific integration are still in use | Check block support, update the affected integration, or retain the widget and scope fragments to the routes that require it. |
Production rollout checklist
- Back up files and the database, and deploy the change through a staging-to-production workflow.
- Clear page, object, CDN, and browser caches after deployment.
- Verify that unrelated pages no longer execute cart fragments.
- Verify add-to-cart from product, archive, quick-view, and custom campaign interfaces.
- Verify cart count, mini-cart contents, remove-item, quantity changes, coupons, shipping, tax, and checkout completion.
- Test guest, logged-in, mobile, desktop, and browser Back-button scenarios.
- Monitor server logs and AJAX error rates after release. Roll back if cart correctness, checkout, or account behavior regresses.
Bottom line for store owners
Begin by finding who loads wc-cart-fragments; do not start by deleting a core script globally. Remove an accidental enqueue where no live cart UI exists, adopt the Mini Cart Block when your theme and extensions are compatible, or use the documented filter to stop execution on unrelated routes. Keep every route with cart behavior in scope, and treat Cart, Checkout, My Account, sessions, and cart cookies as dynamic. The right result is fewer unnecessary fragment requests without sacrificing a correct, private cart for any shopper.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

