sage icon indicating copy to clipboard operation
sage copied to clipboard

plugins.js and bootstrap.js should be separate

Open elflo opened this issue 14 years ago • 0 comments

It seems HTML5 Boilerplate's 'plugin.js' only contains some console.log helper code for debugging with firebug, so this only has value during development and does not need to be deployed and served to visitors.

Since Roots' policy is to leave 3rd party code as complete and untouched as possible, a proposed solution would be to deal with this like with HTML5BP's 'style.css', meaning 'plugins.js' could still be included but its wp_register_script and wp_enqueue_script should be commented out by default in roots-scripts.php.

A separate bootstrap.min.js would then either be added to roots/js and enqueued in roots-scripts.php, or its code would be added to 'main.js' like it was previously done with scripts.js

Any thoughts?

elflo avatar May 03 '12 07:05 elflo