Removed (document).ready from wc_print_js()

jQuery(document).ready(function($) { is equivalent to calling
jQuery(function($) {.

http://api.jquery.com/ready/
This commit is contained in:
toddlahman 2014-01-26 19:37:03 -08:00
parent 2725527d4a
commit 33f2c5b4cd
1 changed files with 2 additions and 2 deletions

View File

@ -315,7 +315,7 @@ function wc_print_js() {
if ( ! empty( $wc_queued_js ) ) {
echo "<!-- WooCommerce JavaScript-->\n<script type=\"text/javascript\">\njQuery(document).ready(function($) {";
echo "<!-- WooCommerce JavaScript -->\n<script type=\"text/javascript\">\njQuery(function($) {";
// Sanitize
$wc_queued_js = wp_check_invalid_utf8( $wc_queued_js );