Please see this thread – maybe this applies to you. Please follow the suggestion about replacing the script.
Hey,
I get the same problem with the theme I use “Awaken”
I read all the given thread.
I make lot of tests, there the order to load libs that works in my case :
– jQuery
– jQuery migrate
– Bootstrap
– All jquery lib
– photonic
So if I change this line :
wp_enqueue_script('photonic', plugins_url('include/scripts/photonic.js', __FILE__), $photonic_dependencies, $this->version, true);
To indicate to load this library in footer, all works fine on my website.
And it’s better to load javascript file in footer.
Maybe to could add an option to allow user to charge JS in footer ?
And it will be interesting de load all dependancies only on needed page 🙂
Thanks
@colas31,
Sorry, I didn’t see your post earlier.
Responding to your suggestion, loading the library in the footer will not guarantee a fix, because if the plugin (or theme) enqueueing Bootstrap loads it after photonic.js, you will again have a problem.