[BUG] themePjax.min.js error causes product grid to freeze on Desktop (lovare.bg)

This topic has 12 replies, 2 voices, and was last updated 1 week ago ago by Jack Richardson

  • Avatar: Ivan
    Ivan
    Participant
    April 21, 2026 at 15:38

    Hello 8theme Support,

    I am experiencing a persistent issue with the product grid on my website lovare.bg using the XStore theme.

    The Issue:
    On Desktop, when using sorting or pagination, the product grid fails to render correctly. Either the AJAX loader (.et-loader.product-ajax.loading) stays active forever, or the product images remain blank/invisible until I manually hover over each one.

    Technical Investigation:
    I’ve checked the browser console and there is a specific JS error coming from your theme files:
    Uncaught ReferenceError: response is not defined at HTMLDocument.l (themePjax.min.js:1:8544)

    This error seems to break the initialization of the images after an AJAX request. Interestingly, the issue does not exist on mobile devices, only on Desktop.

    Current Settings:

    Native WordPress Lazy Loading: Disabled

    Pjax Pagination: I had to disable it as a workaround, but I want to use it.

    XStore Image Loading: Default

    Evidence:
    I am attaching screenshots of the Console error and the blank product grid.

    Please advise:
    How can I fix the themePjax.min.js error so the AJAX sorting and image rendering work smoothly on Desktop?

    Best regards,
    Ivan

    Files is visible for topic creator and
    support staff only.
    11 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 21, 2026 at 15:46

    Hello @Ivan,

    Could you please, temporarily enable the “Disable Pjax pagination” option in XStore Theme Options -> Speed Optimization: https://prnt.sc/zZxldufICsCD. Then, clear your cache and check if this resolves the main issue. If the problem persists, we would appreciate it if you could provide a video demonstrating the issue so that we can reproduce it on our side.

    Also, if you need our assistance, provide us temporary wp-admin access in private content.

    Additionally, please find attached a similar topic with a related solution and further details: https://www.8theme.com/topic/shop-page-fiter-by-category-then-show-more-will-do-endless-loading/

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Ivan
    Ivan
    Participant
    April 21, 2026 at 16:22

    Hi Jack,

    Thank you for the update.

    As a follow-up: I have already enabled the “Disable Pjax pagination” option.

    Result: This resolved the main issue where the page would freeze/stuck during sorting. Sorting now works because the page performs a full refresh.

    The Remaining Issue: Even with PJAX disabled, the product images on Desktop still do not render initially. They appear as blank spaces until I hover over them with the mouse. This issue is specific to Desktop; on mobile, everything works perfectly.

    Since the site is a live e-commerce store (lovare.bg), I cannot provide admin access at this moment. However, the issue is clearly visible on the front-end. You can see the blank images and the lingering JS errors in the console without needing an admin login.

    It seems like the theme’s image-loading script is not triggering correctly on Desktop after the grid is rendered. Could you please check why the lazy-loading/hover script is failing to initialize these images and provide a fix?

    Best regards,
    Ivan

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 22, 2026 at 07:42

    Hello @Ivan,

    We have reviewed your website but did not observe the issues you described. Could you please provide a video from your side or detailed steps to help us reproduce the issue on our end? A video of our test is attached in the private content.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Content is visible for topic creator and
    support staff only.
    Avatar: Ivan
    Ivan
    Participant
    April 22, 2026 at 09:34

    Hi Jack,

    As requested, I am providing the technical evidence in the private content area below.

    1. Console Log File: I have attached the log file from my browser. It shows a clear Chrome/Edge Intervention:
    “Images loaded lazily and replaced with placeholders. Load events are deferred.”

    2. Video Demonstration: I have also recorded a video showing exactly how the product images remain blank after sorting/pagination and only appear when I hover over them with the mouse.

    Summary: The issue is specific to Desktop. The “Disable Pjax” option helped with the sorting freeze, but the theme’s image-loading script is still failing to trigger correctly after AJAX updates. Please have your developers review the log and the video to identify why the lazy-loading logic is being deferred by the browser.

    Best regards,
    Ivan

    Content is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 22, 2026 at 10:24

    Hello @Ivan,

    The issue with your images is not related to lazy loading but rather to their large file size. As a result, customers using slower connections (such as 3G or 2G) may experience delays when loading images. We recommend optimizing the images on your website by using smaller dimensions. Currently, your product images are displayed in full width (1000px size), whereas a standard size of approximately 300×300 pixels or similar is typically sufficient.

    WooCommerce documentation: https://woocommerce.com/document/woocommerce-customizer/product-page-and-images/#product-images

    Please note that when you change the WooCommerce product image sizes in WordPress, the new dimensions apply only to images uploaded after the change. Any product images uploaded before the update will continue to use the previous cropped versions, which may cause inconsistent sizing, blurry thumbnails, or layout issues on your shop and product pages.

    Regenerating thumbnails resolves this issue by recreating all existing image sizes according to your updated settings. This process scans your media library and generates new versions of each image based on the current WooCommerce and theme image dimensions. Once completed, your shop grids, product galleries, and thumbnails will display correctly in the new sizes, ensuring a consistent and professional appearance across your online store.

    Additionally, you can enable the “Disable native WordPress lazy loading” option in Theme Options -> Speed optimization if you need to disable the browser lazyload for your images on web-site.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Content is visible for topic creator and
    support staff only.
    Avatar: Ivan
    Ivan
    Participant
    April 22, 2026 at 12:14

    Hi Jack,

    Thank you for the suggestions, but I must insist that the issue is not related to image file sizes or connection speeds. Here is the technical evidence why:

    1. The images are already loaded: As seen in my video the images appear instantly the moment I hover over them. If the file size was the issue, we would see them loading slowly or partially. Instead, they are physically present in the browser but remain hidden (likely opacity: 0) until a JS hover event triggers them.

    2. Native Lazy Loading is already disabled: You suggested disabling “Native WordPress lazy loading”, but as you can see in my attached screenshot (image_46ba79.png), this option has been ENABLED (Native Lazy Load is OFF) during all my tests. This confirms that the issue is caused strictly by the XStore theme’s custom scripts, not by WordPress core.

    3. Browser Intervention: My console log clearly records an [Intervention] message. This means the browser is actively deferring the theme’s image-loading script because it identifies it as problematic for performance on Desktop. Regenerating thumbnails will not fix a Javascript execution failure.

    Conclusion: The theme’s AJAX/Pagination script is failing to re-initialize the image display logic after the grid updates. I kindly ask your developers to look at the provided log file and find why the theme’s lazy-load trigger is not firing automatically on Desktop.

    Best regards,
    Ivan

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 22, 2026 at 13:11

    Hello @Ivan,

    With all due respect, we have suggested a solution to optimize your images, as there is no need to load a 200 KB product image with a 1000 px size when it is displayed in a 300 px section. We also provided a testing video showing that all images are displayed simultaneously without hovering or other actions. This indicates that a slow network connection may still be the issue. We kindly ask you to test the site from another device and allow the image to load without hovering over it, as hovering triggers the browser to prioritize loading the active section the customer interacts with.

    Also, if you disabled the suggestion options, then there are no other lazy-load script from our theme that could cause such issue on your images.

    Please note that support on our forum is provided directly by developers, ensuring that your request has been thoroughly tested and analyzed.

    If you require further assistance, you may either provide temporary wp-admin access or create a staging website with the same content so that we can reproduce the issue and review the settings.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: Ivan
    Ivan
    Participant
    April 22, 2026 at 14:43

    Hi Jack,

    Thank you for the response, but I must insist that the “slow network” theory does not apply here for several reasons:

    1. Hover vs. Loading: In my video, the images appear instantly (0 to 100%) only when the mouse touches them. I am testing this on a 70 Mbps connection, which is more than enough for these files. Also, the issue does not exist on the mobile version of the site, where connections are typically slower. This confirms the problem is a Desktop-specific JS trigger issue.

    2. The Browser Intervention: My console log clearly records an [Intervention] message: ‘Images loaded lazily and replaced with placeholders. Load events are deferred.’ This is a direct browser response to the theme’s script behavior. Since “Native WordPress Lazy Loading” is DISABLED in my settings (see image_46ba79.png), only the theme’s custom AJAX/Lazy-load script is running.

    3. Reproducibility of the issue
    To reproduce the issue correctly, please test in a clean environment (cleared cache or Incognito window).
    After triggering sorting or pagination (AJAX), the product images do not initialize properly and remain hidden until a manual hover event occurs. This confirms that the image initialization script is not firing after the AJAX content update.

    I kindly ask your developers to review this behavior and check why the lazy-load trigger is not executed after AJAX refresh.

    Best regards,
    Ivan

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 22, 2026 at 15:27

    Hello @Ivan,

    We have conducted multiple tests but were unable to reproduce the reported issue. A detailed video has been attached in the private content for your reference.

    If you would like us to investigate the matter further, please follow the suggestions we provided above (https://www.8theme.com/topic/bug-themepjax-min-js-error-causes-product-grid-to-freeze-on-desktop-lovare-bg/#post-469355). Unfortunately, we are unable to offer additional support without reviewing your website configuration and the list of active plugins.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Content is visible for topic creator and
    support staff only.
    Avatar: Ivan
    Ivan
    Participant
    April 22, 2026 at 15:57

    Hi Jack,

    Thank you for the video.

    I can confirm that on your clean test environment the issue is not reproducible, which suggests that the problem is likely related to my specific setup.

    I will now proceed with additional testing on my side (plugins, browser environment, etc.) to isolate the cause.

    If needed, I will provide you with temporary access so you can review the configuration directly.

    Best regards,
    Ivan

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 23, 2026 at 06:35

    Hello @Ivan,

    Thank you for your understanding and for reviewing our tests. We kindly recommend implementing the optimizations suggested in the following reply: https://www.8theme.com/topic/bug-themepjax-min-js-error-causes-product-grid-to-freeze-on-desktop-lovare-bg/#post-469345. These improvements may help resolve issues specific to your device or browser configuration.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

  • Viewing 12 results - 1 through 12 (of 12 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.