I am trying not to repeat a post I made in the Plugins forum. This is just a more general question. I want to reverse or negate an action for a plugin only on certain pages. But I need to make sure the file I created with the script to override the plugin javascript gets loaded last. Is there a known or common way to make sure a file - let's call it custom.js - gets called last when the page is loading in the browser? Just adding an action through wp_enqueue_scripts in the functions.php file doesn't seem to make it load last. It loads. But the plugin loads later and kills what I was trying to reverse or negate.
Thanks.