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:
parent
2725527d4a
commit
33f2c5b4cd
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue