Title: mshan1's Replies | WordPress.org

---

# mshan1

  [  ](https://wordpress.org/support/users/mshan1/)

 *   [Profile](https://wordpress.org/support/users/mshan1/)
 *   [Topics Started](https://wordpress.org/support/users/mshan1/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mshan1/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mshan1/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mshan1/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mshan1/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mshan1/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Menu - Create Mobile-Friendly Menu] jquery in the header – bad PageSpeed](https://wordpress.org/support/topic/jquery-in-the-header-bad-pagespeed/)
 *  Thread Starter [mshan1](https://wordpress.org/support/users/mshan1/)
 * (@mshan1)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-in-the-header-bad-pagespeed/#post-11167987)
 * Hello Peter,
 * thanks for your help. Now it works. Its not working if you put the links to jquery
   hardcoded in the footer.
    But if you put this in your functions.php it works 
   fine. function jquery_in_footer() { wp_scripts()->add_data( ‘jquery’, ‘group’,
   1 ); wp_scripts()->add_data( ‘jquery-migrate’, ‘group’, 1 ); } add_action( ‘wp_enqueue_scripts’,‘
   jquery_in_footer’ );
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Menu - Create Mobile-Friendly Menu] jquery in the header – bad PageSpeed](https://wordpress.org/support/topic/jquery-in-the-header-bad-pagespeed/)
 *  Thread Starter [mshan1](https://wordpress.org/support/users/mshan1/)
 * (@mshan1)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-in-the-header-bad-pagespeed/#post-11167921)
 * Hello Peter,
 * I can deregister the jquery and the jquery-migrate and move it to the footer.
   
   I have done this.
 * But then the Plugin is not working if this is done.
 * Is it possible to run the Plugin with jquery and jquery-migrate.min.js in the
   footer?
 * Best Regards.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Menu - Create Mobile-Friendly Menu] jquery in the header – bad PageSpeed](https://wordpress.org/support/topic/jquery-in-the-header-bad-pagespeed/)
 *  Thread Starter [mshan1](https://wordpress.org/support/users/mshan1/)
 * (@mshan1)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-in-the-header-bad-pagespeed/#post-11167883)
 * Hello Peter,
 * no thats not working if Disable Background Scrolling is on or off, the scripts
   are always in the header.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Responsive Menu - Create Mobile-Friendly Menu] jquery in the header – bad PageSpeed](https://wordpress.org/support/topic/jquery-in-the-header-bad-pagespeed/)
 *  Thread Starter [mshan1](https://wordpress.org/support/users/mshan1/)
 * (@mshan1)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/jquery-in-the-header-bad-pagespeed/#post-11167848)
 * Hello Peter,
 * thank you for the answer.
 * The load scripts in the footer option is activated
 * these three scripts are in the header
    <script type=’text/javascript’ src=’[https://www.abc.de/wp-includes/js/jquery/jquery.js?ver=1.12.4′></script&gt](https://www.abc.de/wp-includes/js/jquery/jquery.js?ver=1.12.4′></script&gt);
   <script type=’text/javascript’ src=’[https://www.abc.de/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1′></script&gt](https://www.abc.de/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1′></script&gt);
   <script type=’text/javascript’ src=’[https://www.abc.de/wp-content/plugins/responsive-menu-pro/public/js/noscroll.js’></script&gt](https://www.abc.de/wp-content/plugins/responsive-menu-pro/public/js/noscroll.js’></script&gt);
 * and this is in the footer
    <script type=’text/javascript’ src=’[https://www.abc.de/wp-content/uploads/responsive-menu-pro/js/responsive-menu-pro-1.js?ver=5.0.3′></script&gt](https://www.abc.de/wp-content/uploads/responsive-menu-pro/js/responsive-menu-pro-1.js?ver=5.0.3′></script&gt);
 * I think all scripts have to be in the footer.
    -  This reply was modified 7 years, 3 months ago by [mshan1](https://wordpress.org/support/users/mshan1/).

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