I've got javascript (a) and jQuery script (b). I need (b) to run after (a) has finished running. I need them to run sequentially. How do I do that?
In wp_enqueue_script, I've made (b) dependent on (a), but it appears that (b) runs before (a) has finished processing.
I'm trying to use the_maps_bounds, a variable I've put in the global scope. It gets set in (a) and used in (b). The problem is that (b) is trying to use the variable before it has been set.
Any suggestions?
Thank you.