Title: put script in footer ???
Last modified: August 21, 2016

---

# put script in footer ???

 *  [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/put-script-in-footer/)
 * Hellow how can i put script in footer with the jquery.js and jquery.migrate.js?
 * [http://wordpress.org/plugins/simple-popup-manager/](http://wordpress.org/plugins/simple-popup-manager/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/put-script-in-footer/#post-4240562)
 * Sorry i found a way ^^
 * jquery-core
    jquery-migrate
 * [set $in_footer to true](http://codex.wordpress.org/Function_Reference/wp_enqueue_script)
 * thanks for the plugin
 * ————————————
 * by the way you can put your script in footer to improve loading like this :
 * LINE 159 > 169 IN INDEX.PHP
 *     ```
       if( $options['debug'] && current_user_can( 'manage_options' ) || !$options['debug'] ){
       	//jQuery Cookie
       	wp_deregister_script( 'jquery-cookie' );
       	wp_register_script( 'jquery-cookie', plugins_url('js/jquery.cookie.js', __FILE__), array( 'jquery' ),SPM_PLUGIN_VERSION<strong>, true</strong>);
       	wp_enqueue_script( 'jquery-cookie' );
   
       	//Simple Popup Manager Javascript
       	wp_deregister_script( 'simple-popup-manager' );
       	wp_register_script( 'simple-popup-manager', plugins_url('js/simple-popup-manager.js', __FILE__), array( 'jquery', 'jquery-cookie' ),SPM_PLUGIN_VERSION<strong>, true</strong>);
       	wp_enqueue_script( 'simple-popup-manager' );
       ```
   
 *  Thread Starter [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * (@jibsoux)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/put-script-in-footer/#post-4240646)
 * oops the `<strong>` balise don’t work in a code cote :p
 * there is the wat to put the script in footer :
 *     ```
       if( $options['debug'] && current_user_can( 'manage_options' ) || !$options['debug'] ){
       	//jQuery Cookie
       	wp_deregister_script( 'jquery-cookie' );
       	wp_register_script( 'jquery-cookie', plugins_url('js/jquery.cookie.js', __FILE__), array( 'jquery' ),SPM_PLUGIN_VERSION, true);
       	wp_enqueue_script( 'jquery-cookie' );
   
       	//Simple Popup Manager Javascript
       	wp_deregister_script( 'simple-popup-manager' );
       	wp_register_script( 'simple-popup-manager', plugins_url('js/simple-popup-manager.js', __FILE__), array( 'jquery', 'jquery-cookie' ),SPM_PLUGIN_VERSION, true);
       	wp_enqueue_script( 'simple-popup-manager' );
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘put script in footer ???’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-popup-manager.svg)
 * [Simple Popup Manager](https://wordpress.org/plugins/simple-popup-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-popup-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-popup-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-popup-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-popup-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-popup-manager/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [JibsouX](https://wordpress.org/support/users/jibsoux/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/put-script-in-footer/#post-4240646)
 * Status: not resolved