This plugin lists JavaScripts and Style sheets with control field that lets you control CSS & JavaScript issues to include only on the pages where you only need them.
Anyone who has license to manage application will have the center to add any code like malicious and creative code.
The text in 'Logic field can be PHP code and will return 'true when you need the script to load.
If there is no 'return in the text implicit 'return is added to the start and is added on the end.
NOT to overrule the logic eg. is home is TRUE when this is NOT the home page..
X OR Y is TRUE when X is real or Y is true.. && AND to make conditions specific.
There are lots of great code categories on WP forums and WP sites across the net.
But WP Codex is also of best categories to adapt such as Test if post is in descendent category..
Before Script Logic code is evaluated for each script the text of Script Logic code is passed from this filter.
If the filter returns BOOLEAN result this is used instead to determine if the script should load.
Read more