Problem Loading Minified JS in Footer
-
I have loaded some JS in the footer using minify.
I assumed that W3TC loaded in
wp_footer()
but I was clearly mistaken.After
wp_footer()
I have some code as follows<?php wp_footer(); ?> <script> (function($) { $(document).foundation(); })(jQuery); </script>
This jQuery function is throwing an
Uncaught TypeError
because w3TC is loading afterwp_footer()
How do I
a) Force W3TC to load in wp_footer()
OR
b) Hook into the action W3TC is using to load the JS after W3TC?
OR
c) Load my JS after the minified JS include
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem Loading Minified JS in Footer’ is closed to new replies.