It doesn’t appear to be loading the JavaScript file at all for me. The file isn’t anywhere in your code. Can you confirm that <?php wp_footer(); ?> is in the footer.php file and that file is being loaded on that theme pages template?
Hi Phil,
Thanks so much for your quick response. I cannot confirm that <?php wp_footer(); ?> is included in my footer.php file because I’m using Genesis and they structure everything a little differently.
That said, I’ve replicated the site so I can strip it out and enable some heavy debugging measures and I’m still seeing the same inconsistency. This site has plugins disabled and the default twenty sixteen theme enabled: http://www.staging3.airiswellsite.com/test-accordion/
With this site, I can confirm that <?php wp_footer(); ?> is included in my footer.php file and it’s being loaded on every page. Any ideas?
It seems to be not outputting the Javascript file in the HTML at all. I honestly have no idea why that would be happening. I’ve never seen anything like this before.
Hmm… well is there a way that I can keep the scripts from being injected into the page automatically?
I know you’re not seeing them load on your end, but they’ll load them every 3rd or 4th time for me. If I can prevent this from happening though, I can set up the page to load the scripts manually and prevent a double-event.
Some additional information about this issue, by the way…
I’m feeding in these accordion elements via Toolset Views, one of WordPress’ commercial plugins. I’ve opened a ticket with them as well, but they seem to be just as dumbfounded as us.
I just can’t fathom what would prevent scripts from being loaded in the footer on a random basis, especially if other plugins are disabled and I’m running the default twenty sixteen theme… :/
Neither can I which is why I’m so confused. I can say that this plugin will only load the JS when it detects that there accordions on the page. So if the page doesn’t include an accordion, it won’t load. maybe there is some issue with Toolset Views that is causing the plugin to think that there are no accordions on this particular page, sporadically.
Sorry I couldn’t be more help.