title: wordpress how to add javascript to footer and maybe load them after page is loaded?
body: <p>am trying to move javascript in wordpress to footer and i am able to using the code below , sticking this to my themes functions.php , how ever some of my slider.js or other .js gets affected and my sliders in homepage stops showing up and shows white blank area.</p>
  
  <p>i think these are the javascript is being affects not loading the slider in homepage</p>
  
  <pre><code>http://example.com/wp-content/plugins/LayerSlider/static/js/layerslider.transitions.js
  http://exmple.com/wp-content/plugins/LayerSlider/static/js/layerslider.kreaturamedia.jquery.js
  </code></pre>
  
  <p>now what can i do to fix it.</p>
  
  <pre><code>function remove_head_scripts() {
  remove_action('wp_head', 'wp_print_scripts');
  remove_action('wp_head', 'wp_print_head_scripts', 9);
  remove_action('wp_head', 'wp_enqueue_scripts', 1);
  
  add_action('wp_footer', 'wp_print_scripts', 5);
  add_action('wp_footer', 'wp_enqueue_scripts', 5);
  add_action('wp_footer', 'wp_print_head_scripts', 5);
  }
  add_action( 'wp_enqueue_scripts', 'remove_head_scripts' );
  </code></pre>
  
  <p>is there a way maybe i can load these javascript after the page is loaded up or maybe exclude them , what can i do to improve the speed and make this work the same time.</p>