Script Logic lets you control on which pages scripts and style sheets load using WP's conditional tags.
As of April 2026, Script Logic is a WordPress admin plugin with 10 active installations and a 3/5 rating from 2 reviews. It has been downloaded 2.5K+ times in total. Requires WordPress 2.8+ and PHP false+. Available on WordPress.org since 2014. Last updated 11 years ago — may have compatibility concerns. Top alternative: Loginizer.
This plugin lists all JavaScripts and Style sheets with a control field that lets you control CSS & JavaScript files to include only on the pages where you actually need them. The text field lets you use WP’s Conditional Tags, or any general PHP code.
NOTE: The script logic you introduce is evaluated directly. Anyone who has permission to manage options will have the right to add any code, including malicious and possibly destructive code. There is an optional filter ‘script_logic_eval_override’ which you can use to bypass the EVAL with your own code if needed. (See Other Notes).
The text in the ‘Logic’ field can be full PHP code and should return ‘true’ when you need the script to load. If there is no ‘return’ i…
| WordPress | 2.8+ requiredTested up to 3.9.40 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.