Im writing a plugin and have allot of custom Javascript. (shudder). I would like to only enque these javascript and other assets when needed. They are loaded on my plugin pages and also will be neede on the post / page / custom post type edit screens. Is there a simple and best practice method for doing so?
cheers