enqueuing scripts on a hook callback of wp_enqueue_scripts
-
I think I’ve found why Revolution Slider doesn’t play nice with your plugin, but I wanted to run this by you to make sure I know what the hell I’m talking about.
EDIT: IGNORE ALL THIS. SEE COMMENT BELOW
It seems that Revolution Slider initializes itself and does all of its wp_enqueue_* within a hook for wp_enqueue_scripts. In other words:
do_action( 'wp_enqueue_scripts', 'add_plugin_x_scripts' );
I’m betting that you do your minify string magic in the same or an earlier hook. Am I right? And wouldn’t that cause a sequence issue or race condition where the other plugin may still get its script or style enqueued, but only after you’ve already done all your modifications in BWP?
END EDIT
I realize that this is not your problem. I’m really just trying to figure out what to recommend to RevSlider’s authors to make it more compatible with minifcation plugins in general. ??
- The topic ‘enqueuing scripts on a hook callback of wp_enqueue_scripts’ is closed to new replies.