- Timestamp:
- 09/12/2023 12:04:15 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/functions.php
r56526 r56556 480 480 wp_register_script( 'twentyseventeen-skip-link-focus-fix', get_theme_file_uri( '/assets/js/skip-link-focus-fix.js' ), array(), '20161114', array( 'in_footer' => true ) ); 481 481 482 wp_enqueue_script( 'twentyseventeen-global', get_theme_file_uri( '/assets/js/global.js' ), array( 'jquery' ), '20211130', array( 'in_footer' => true ) ); 482 wp_enqueue_script( 483 'twentyseventeen-global', 484 get_theme_file_uri( '/assets/js/global.js' ), 485 array( 'jquery' ), 486 '20211130', 487 array( 488 'in_footer' => false, // Because involves header. 489 'strategy' => 'defer', 490 ) 491 ); 483 492 484 493 $twentyseventeen_l10n = array( … … 487 496 488 497 if ( has_nav_menu( 'top' ) ) { 489 wp_enqueue_script( 'twentyseventeen-navigation', get_theme_file_uri( '/assets/js/navigation.js' ), array( 'jquery' ), '20210122', array( 'in_footer' => true ) ); 498 wp_enqueue_script( 499 'twentyseventeen-navigation', 500 get_theme_file_uri( '/assets/js/navigation.js' ), 501 array( 'jquery' ), 502 '20210122', 503 array( 504 'in_footer' => false, // Because involves header. 505 'strategy' => 'defer', 506 ) 507 ); 490 508 $twentyseventeen_l10n['expand'] = __( 'Expand child menu', 'twentyseventeen' ); 491 509 $twentyseventeen_l10n['collapse'] = __( 'Collapse child menu', 'twentyseventeen' ); … … 500 518 wp_localize_script( 'twentyseventeen-global', 'twentyseventeenScreenReaderText', $twentyseventeen_l10n ); 501 519 502 wp_enqueue_script( 'jquery-scrollto', get_theme_file_uri( '/assets/js/jquery.scrollTo.js' ), array( 'jquery' ), '2.1.3', array( 'in_footer' => true ) ); 520 wp_enqueue_script( 521 'jquery-scrollto', 522 get_theme_file_uri( '/assets/js/jquery.scrollTo.js' ), 523 array( 'jquery' ), 524 '2.1.3', 525 array( 526 'in_footer' => true, 527 'strategy' => 'defer', 528 ) 529 ); 503 530 504 531 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
Note: See TracChangeset
for help on using the changeset viewer.