THIS IS SOLVED,
ISSUE WAS:
- had not removed main.js code from scriptsmin.js so it was running twice (not using it with grunt on the site as I am not running it locally)
THIS IS SOLVED,
ISSUE WAS:
I noticed that main.js has
UTIL.fire('common');
twice.
I removed the first action as it is called again in:
UTIL.fire('common', 'finalize');
That prevented common from firing twice. Still haven’t figured out how to stop body classes from firing twice
In this example I am running a script under sub: and its fireing twice as well. in this example its on sub pages,This works when moved to: common. I’m looking for if I need to add something for functions on sub pages to work correctly
http://renaissanceps.wpengine.com/us/
Is there a change I need to make to main.js to have it not fire twice for other pages?