2 | | function tgi_jquery_in_footer_test() { |
3 | | wp_register_script('tgi-jquery-js', "//some/uri/name.js", array("jquery"), "0.1", true); |
4 | | wp_enqueue_script('tgi-jquery-js'); |
5 | | } |
6 | | add_action('wp_enqueue_scripts', 'tgi_jquery_in_footer_test'); |
| 2 | {{{ |
| 3 | function tgi_jquery_in_footer_test() { |
| 4 | wp_register_script('tgi-jquery-js', "//some/uri/name.js", array("jquery"), "0.1", true); |
| 5 | wp_enqueue_script('tgi-jquery-js'); |
| 6 | } |
| 7 | add_action('wp_enqueue_scripts', 'tgi_jquery_in_footer_test'); |
| 8 | }}} |
9 | | function tgi_jquery_in_footer_test() { |
10 | | wp_deregister_script("jquery"); |
11 | | wp_register_script("jquery", false, array("jquery-core", "jquery-migrate"), "1.11", true); |
12 | | wp_register_script('tgi-jquery-js', "//some/uri/name.js", array("jquery"), "0.1", true); |
13 | | wp_enqueue_script('tgi-jquery-js'); |
14 | | } |
15 | | add_action('wp_enqueue_scripts', 'tgi_jquery_in_footer_test'); |
| 11 | {{{ |
| 12 | function tgi_jquery_in_footer_test() { |
| 13 | wp_deregister_script("jquery"); |
| 14 | wp_register_script("jquery", false, array("jquery-core", "jquery-migrate"), "1.11", true); |
| 15 | wp_register_script('tgi-jquery-js', "//some/uri/name.js", array("jquery"), "0.1", true); |
| 16 | wp_enqueue_script('tgi-jquery-js'); |
| 17 | } |
| 18 | add_action('wp_enqueue_scripts', 'tgi_jquery_in_footer_test'); |
| 19 | }}} |