Support » Plugin: MinQueue » Send minqueue.js files to footer
3 years, 4 months ago
Is there a way to send the minified and concatenated script files to the footer? I would imagine something has to be changed in one of the plugin php files but I don’t know which one.
When you enqueue a script, you can set whether it is loaded in the header or footer.
You need to set the 5th param of wp_enqueue_script to true – see http://codex.wordpress.org/Function_Reference/wp_enqueue_script
MinQueue will add the minified file in the same location that the original file was enqueued. To move a scipt to the footer – you need to change where it is loaded when it is enqueued.
Thanks for the quick response. So if I understand you correctly I have to send my individual scripts to the footer using wp_enqueue_script before I minify using minqueue. Right?
Yes thats right. And MinQueue only handles scripts enqueued using wp_enqueue_scripts.