XStore + LiteSpeed Optimization – JS Deferred Breaks Functionality & Low PageSpeed Scores

This topic has 11 replies, 2 voices, and was last updated 2 weeks, 5 days ago ago by Andrew Mitchell

  • Avatar: Andrei Andrei
    Andrei Andrei
    Participant
    February 19, 2026 at 11:44

    Hello,

    I’m working on optimizing my website https://onedee.ro
    and I need your guidance because I cannot achieve stable Core Web Vitals scores without breaking theme functionality.

    I’m using:

    XStore (child theme)

    WooCommerce

    LiteSpeed Cache (server level + plugin)

    Elementor

    Current Theme Speed Settings

    From Theme Options export:

    Disable Old Browser Support → ON

    FontAwesome Support → Disabled

    Quick View → OFF

    Swatches → OFF

    Compare → OFF

    Wishlist → OFF

    Ajax Filters → OFF

    Disable Embeds → ON

    Brands → ON

    Disable Gutenberg → OFF in theme (but Gutenberg not used)

    Disable jQuery Migrate → OFF

    Disable Theme Swiper JS → OFF

    Disable Elementor Dialog JS → OFF

    CSS Minify (XStore internal) → OFF

    Image loading type → default

    Full theme options export attached.

    LiteSpeed Cache Settings

    JS:

    JS Minify → ON

    JS Combine → OFF

    Load JS Deferred → OFF (because when enabled it breaks animations, filters and interactive elements)

    JS Deferred/Delayed Excludes:
    elementor
    swiper
    etheme

    CSS:

    CSS Minify → ON

    CSS Combine → ON

    Generate UCSS → ON

    UCSS Inline → ON

    Load CSS Asynchronously → ON

    Main Issues
    1️⃣ When enabling JS Deferred or JS Delayed:

    Elementor animations stop working

    Shop filters stop working

    Some interactive elements break
    Even with exclusions:

    elementor
    swiper
    etheme

    What is the correct exclusion list for XStore core JS so we can safely use JS Deferred or Delayed without breaking functionality?

    PageSpeed shows heavy CPU usage from:

    /js/f0be164…

    which seems to be XStore main script.

    2️⃣ CLS issue – Unsized logo image

    PageSpeed reports:
    “Unsized image element – Logo”

    Where exactly should we define fixed width/height for the header logo in XStore to eliminate CLS completely?

    3️⃣ Forced Reflow / Main-thread blocking

    PageSpeed shows long task caused by XStore main JS file.

    Is there an official recommended configuration for:

    LiteSpeed Cache

    WP Rocket

    or native XStore settings

    to reduce main-thread blocking without breaking theme features?

    4️⃣ Brands module

    Brands is currently enabled.

    Does Brands load global JS/CSS on every page?
    If yes, is there a way to limit it only to brand archive pages?

    What I Need From You

    Official recommended LiteSpeed settings for XStore.

    Exact JS exclusions required for Deferred/Delayed.

    Best way to eliminate CLS from logo.

    Confirmation whether Disable jQuery Migrate and Disable Theme Swiper JS are safe in my case.

    Any internal XStore optimization that reduces main JS execution time.

    I’m trying to achieve stable 90+ PageSpeed scores without breaking shop functionality.

    Thank you.

    10 Answers
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 19, 2026 at 13:04

    Hello,

    Thank you for reaching out and for providing detailed information about your current configuration and optimization efforts. We appreciate the time you have taken to describe your setup and the issues you are facing.

    Please find our guidance below:

    JS Deferred/Delayed Exclusions
    To safely use JS Deferred or Delayed without breaking theme functionality, we recommend excluding the following scripts and handles:

    - jquery
    - jquery-core
    - jquery-migrate
    - elementor
    - elementor-frontend
    - etheme
    - swiper
    - xstore-theme
    - xstore-core

    These exclusions should help maintain animations, filters, and interactive elements while still improving performance.

    Following these recommendations should help you achieve more stable Core Web Vitals and improved PageSpeed scores without losing functionality.

    Best Regards,
    8Theme’s Team

    Avatar: Andrei Andrei
    Andrei Andrei
    Participant
    February 19, 2026 at 13:32

    Hello,

    Thank you for your reply.

    I have applied the exact exclusions you recommended in LiteSpeed Cache:

    jquery

    jquery-core

    jquery-migrate

    elementor

    elementor-frontend

    etheme

    swiper

    xstore-theme

    xstore-core

    However, even with all these exclusions, enabling JS Deferred or JS Delayed still breaks:

    • Elementor animations
    • Shop filters
    • Some interactive product elements

    For reference:

    disable_jquery_migrate is OFF

    disable_theme_swiper_js is OFF

    disable_elementor_dialog_js is OFF

    Brands module is enabled

    AJAX add to cart is enabled

    So XStore clearly depends heavily on its main JS file and jQuery being executed early.

    My question is:

    Is there an official recommended LiteSpeed configuration specifically for XStore where JS Deferred or Delayed can be safely enabled?

    Or does XStore require its main JS (xstore-core / etheme scripts) to run in the head without deferring?

    Because currently the only stable configuration is:

    JS Minify → ON
    JS Combine → OFF
    JS Deferred → OFF

    which gives stable functionality but lower mobile scores.

    Please confirm what is the officially supported optimization setup for XStore + LiteSpeed.

    Thank you.

    Avatar: Andrei Andrei
    Andrei Andrei
    Participant
    February 19, 2026 at 14:32

    Hello,

    After implementing all recommended performance optimizations, we are facing a severe mobile performance issue.

    Current situation:

    Desktop score: 99
    Mobile score: 30

    The mobile LCP element is now being detected as the CookieYes banner text instead of the hero section.

    However, the main issue appears to be excessive main-thread execution from the XStore core JS file:

    Main file:

    /js/196da2e….js?ver=6234a

    Issues observed in Lighthouse:

    • 6,188 ms CPU time
    • 3,368 ms Style & Layout
    • Significant forced reflows triggered by XStore JS
    • Reduce unused JavaScript: 222 KB unused
    • Render blocking CSS still 149 KB even with UCSS enabled

    We have already:

    • Removed custom fonts
    • Enabled UCSS
    • Disabled CSS Combine
    • Enabled CSS Minify
    • Enabled JS Minify
    • Enabled Font Display Swap
    • Optimized images
    • Optimized cache

    Yet mobile performance collapses due to:

    Heavy XStore JS execution

    Forced reflows caused by theme scripts

    CSS bundle still large even with UCSS

    Please clarify:

    Is there a recommended minimal JS mode for XStore?

    Can main theme JS be split or conditionally loaded?

    Is there a way to disable unnecessary modules globally?

    Is there an official mobile performance configuration for XStore + LiteSpeed?

    We need to achieve stable 90+ mobile performance without breaking functionality.

    Thank you.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 19, 2026 at 15:07

    Could you please provide temporary wp-admin and FTP access? We will check what can be done to help you.
    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Best Regards,
    8Theme’s Team

    Avatar: Andrei Andrei
    Andrei Andrei
    Participant
    February 19, 2026 at 15:38

    Hello,

    Thank you for your response.

    Unfortunately, due to our internal security policies, we cannot provide temporary WP-admin or FTP access to third parties.

    However, we are fully available to collaborate here in chat and provide:

    Screenshots of any settings

    System status report

    Theme version

    PHP version

    Server configuration

    Any specific code snippets you would like us to test

    Performance reports (Lighthouse / PSI)

    Error logs

    If you could please specify exactly:

    Which theme options or modules you would like us to disable/test

    Whether there is a lightweight configuration for mobile

    If there are known performance optimizations for large WooCommerce homepages

    If the main JS bundle can be conditionally loaded

    We will implement the changes ourselves and provide feedback.

    We appreciate your understanding and are happy to cooperate step by step without sharing direct access.

    Best regards.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 20, 2026 at 08:49

    Hello, Andrei,

    In this case, we kindly ask you to send us a screenshot of the WP Rocket cache plugin settings, specifically the scripts and styles that are excluded from caching. We also need to know which theme speed optimization options you have enabled. To do this, please go to the Theme Options → Speed Optimization section and take a screenshot as well.

    Additionally, please go to the Elementor settings section, review the widgets in use, and disable any unnecessary ones. You also need to configure CDN and GZIP on your server. You can find more information about this in the following articles.

    https://www.8theme.com/documentation/xstore/troubleshooting/how-to-speed-up-my-website/

    https://www.8theme.com/documentation/xstore/troubleshooting/the-ultimate-2025-guide-to-boosting-wordpress-speed-with-xstore-theme/

    Best regards,
    8Theme Team

    Avatar: Andrei Andrei
    Andrei Andrei
    Participant
    February 20, 2026 at 11:45

    Here is our current configuration:

    Server & Compression

    Server: LiteSpeed

    Brotli compression: Enabled (90%+ compression confirmed)

    GZIP/Brotli fully working

    HTTP Status 200

    No server compression issues detected

    LiteSpeed Cache + QUIC.cloud

    QUIC.cloud connected and active

    Image Optimization: Active

    Page Optimization (CCSS / UCSS): Active

    LQIP: Enabled

    CDN: Currently disabled

    Public Cache: ON

    Private Cache: ON

    Browser Cache: ON

    Object Cache: OFF

    Guest Mode: ON

    Guest Optimization (WebP): Enabled

    Elementor Settings

    CSS Print Method: External file

    Optimized Image Loading: Enabled

    Optimized Gutenberg Loading: Enabled

    Background Lazy Load: Enabled

    Inline Font Icons: Default

    Container: Default

    Markup Optimization: Default

    XStore Theme

    Lazy loading active

    AJAX Add to Cart enabled

    Swatches disabled

    Compare disabled

    Wishlist enabled

    No custom heavy scripts added

    Global CSS minification not forced at theme level

    WordPress image quality: 82

    Big image threshold: 2560px

    Given the above setup:

    Could you please specify:

    What exactly is not working or underperforming?

    Are you detecting a conflict between XStore and LiteSpeed?

    Do you recommend enabling QUIC.cloud CDN?

    Should Object Cache be enabled on LiteSpeed server?

    Are there any specific Page Optimization settings you want changed?

    If you can clarify the exact issue or performance metric that needs improvement, I can adjust the configuration accordingly before sharing temporary access.
    In the private link i have uploaded my complete settings for xstore and litespped cache.

    Looking forward to your guidance.

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 20, 2026 at 15:42

    Hello, Andrei,

    We have not detected any conflicts between XStore and LiteSpeed.

    You did not specify whether you have disabled unnecessary Elementor widgets. You can view them – please check the attached video for reference.

    Also, please confirm whether the wishlist is enabled for variable products. Regarding the CDN, we recommend using Cloudflare, as it not only improves performance but also provides protection against bot attacks.

    Best regards,
    8Theme’s Team

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrei Andrei
    Andrei Andrei
    Participant
    February 20, 2026 at 16:30

    Hello,

    Thank you for your reply.

    Yes, we have already disabled all unnecessary Elementor widgets as shown in your video. We carefully reviewed the Elementor settings and deactivated all unused widgets.

    Regarding the CDN, we do not require one at the moment. Our traffic is exclusively from Romania, and CDN is currently disabled. Performance is already very good without it.

    About the wishlist for variable products — we are not using variable products on this website. All products are simple products. Therefore, there are no variable products where wishlist behavior could apply.

    Please let us know if there is anything else that specifically needs checking.

    Thank you.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 23, 2026 at 09:04

    Hello, Andrei,

    At the moment, we do not see any issues that could affect performance. After connecting the CDN, the situation should improve even further.

    Best regards,
    8Theme Team

  • Viewing 11 results - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.