[WP]JavaScript to Footer
March 3rd, 2011 at 01:00am Jason 211 views
<?php /* Plugin Name: JavaScript to Footer Plugin URI: http://www.prelovac.com/vladimir/wordpress-plugins/footer-javascript Description: This plugin automatically moves JavaScript code to page footer, speeding up page loading time. Version: 0.4 Author: Vladimir Prelovac Author URI: http://www.prelovac.com/vladimir */ // super easy way to move javascript to footer 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); ?>
Entry Filed under: WordPress Tagged with: JS wordpress
Hot Posts Hot Comments Hot Tags
- apartment bbpress blog class CMS code CSS div dream english friends girl Google hot Hot Dog html job JS life lines love Madonna menu Michael Jackson movie oral english PHP plugin saying school sexy site student students submenu success tags teacher teaching txt university video website widget wordpress





Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
Trackback this post | Subscribe to the comments via RSS Feed