Home / Forums / WoodMart support forum / Accordion JavaScript Issue Causing Slow Website Loading
Home › Forums › WoodMart support forum › Accordion JavaScript Issue Causing Slow Website Loading
Accordion JavaScript Issue Causing Slow Website Loading
- This topic has 3 replies, 2 voices, and was last updated 3 weeks, 3 days ago by
Artem Temos.
-
AuthorPosts
-
December 23, 2025 at 4:53 pm #702085
idoamraniParticipantHi,
I’m experiencing a JavaScript issue that appears to originate from the Woodmart theme (or the child theme).
This error is causing the website to load very slowly and blocks several scripts from running properly.
Currently, orders cannot be placed using a specific shipping method. This prevents the window from being displayed.Below is the exact code snippet that is executed on my site:
js
jQuery(function() {
jQuery(“#accordion .vc_column-inner > .wpb_wrapper”).accordion({
heightStyle: “content”,
animate: false
});
});The problem is that the
.accordion()function is being called even though **jQuery UI Accordion is not loaded**, which results in the following console error:`
TypeError: jQuery(…).accordion is not a function
`This error stops additional JavaScript from running and significantly affects page performance.
I have tried the following steps without success:
* Enqueuing
jquery-ui-accordionmanually via the child theme.
* Adding a fallback shim to prevent the error.
* Clearing cache (WP Rocket + Cloudflare).
* Checking for any WPBakery accordion elements (none found).It seems that the theme (or a JS file loaded by the theme) is injecting the accordion initialization code automatically, even when no accordion element exists on the page.
I would greatly appreciate your assistance, as this issue impacts site performance and front-end functionality.
Thank you in advance for your support!
Best regards,
IdoAttachments:
You must be logged in to view attached files.December 23, 2025 at 4:59 pm #702089
Artem TemosKeymasterHello,
We have checked this on your website and see that this script is not related to our theme. It is added either by the installed plugins or directly into the theme code. Check the screenshot https://gyazo.com/47f5c7834b678f525811efc6865d8781
Kind Regards
December 23, 2025 at 5:31 pm #702091
idoamraniParticipantI really appreciate the quick response, do you know which plugin this is coming from? Can you share from which file to take the code you sent?
December 24, 2025 at 10:21 am #702135
Artem TemosKeymasterHi Ido,
We double-checked and that snippet is not part of WoodMart assets. It’s coming from a plugin or from custom code in the child theme.
Please follow these steps to identify the source:
1) Switch to the parent WoodMart theme
Disable the child theme to exclude any customizations.2) Plugin conflict test
Deactivate all third-party plugins and keep only required ones active (WoodMart Core, WooCommerce, your chosen page builder). Clear all caches and check the console. Then reactivate plugins one by one, testing each time, until the error reappears. The last activated plugin will be the source.3) Check Custom JS in theme settings
Open Theme Settings -> Custom JS (including “On document ready” if you use it) and look for any code calling .accordion(). Remove or comment it temporarily and retest.Thanks!
-
AuthorPosts
- You must be logged in to create new topics. Login / Register