WordPress.org

Ready to get started?Download WordPress

Forums

MinQueue
[resolved] Send minqueue.js files to footer (5 posts)

  1. theunvarnished
    Member
    Posted 8 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.

    Thanks,

    Theunvarnished

    http://wordpress.org/plugins/minqueue/

  2. Matthew Haines-Young
    Human Made
    Plugin Author

    Posted 8 months ago #

    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.

  3. theunvarnished
    Member
    Posted 8 months ago #

    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?

    Thanks.

  4. Matthew Haines-Young
    Human Made
    Plugin Author

    Posted 8 months ago #

    Yes thats right. And MinQueue only handles scripts enqueued using wp_enqueue_scripts.

  5. theunvarnished
    Member
    Posted 8 months ago #

    Thanks!!

Reply

You must log in to post.

About this Plugin

About this Topic