wp_enqueue_script is putting javascripts in my head of HTML. Is it possible to make javascript for placement at the bottom of HTML page for better performance?
wp_enqueue_script is putting javascripts in my head of HTML. Is it possible to make javascript for placement at the bottom of HTML page for better performance?
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
There is an option to load scripts into the footer.
But for some reason, I get error ...
Parse error: syntax error, unexpected ',' in header.php
when I write ...
wp_enqueue_script( 'comment-reply', , , , true );
if ( is_singular() ) wp_print_scripts( 'comment-reply' );
Your milage may vary with this see: http://core.trac.wordpress.org/ticket/12641
This topic has been closed to new replies.