mshan1
Forum Replies Created
-
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’ );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.
Hello Peter,
no thats not working if Disable Background Scrolling is on or off, the scripts are always in the header.
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>
<script type=’text/javascript’ src=’https://www.abc.de/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1′></script>
<script type=’text/javascript’ src=’https://www.abc.de/wp-content/plugins/responsive-menu-pro/public/js/noscroll.js’></script>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>I think all scripts have to be in the footer.
- This reply was modified 7 years, 3 months ago by mshan1.