Selectively load CSS and JS in WordPress plugins
Do you find it annoying when some developer unrestrictedly includes CSS stylesheets or Javascript libraries within their plugin? Well, I get annoyed too.
If you happen to not understand what I mean, please allow me to explain. I often come across WordPress plugins that include additional CSS stylesheets or Javascript libraries. Normally, those CSS and JS files are intended only for the administration page of the plugin. However instead, the developer includes CSS and JS files on every page of the WordPress admin area. Call it ignorance or laziness.
