Skip to content

Commit

Permalink
Update videojs to 8.17.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens authored Sep 24, 2024
1 parent df128b8 commit 6007b0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1083,9 +1083,9 @@ function zw_remove_wp_block_library_css()
function zw_add_videojs()
{
// TODO: Defer loading of Video.js CSS
wp_enqueue_style('video.js', 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.16.1/video-js.min.css');
wp_enqueue_script('video.js', 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.16.1/video.min.js', args:['strategy' => 'defer']);
wp_enqueue_script('video.js.nl', 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.16.1/lang/nl.min.js', args:['strategy' => 'defer']);
wp_enqueue_style('video.js', 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.17.4/video-js.min.css');
wp_enqueue_script('video.js', 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.17.4/video.min.js', args:['strategy' => 'defer']);
wp_enqueue_script('video.js.nl', 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.17.4/lang/nl.min.js', args:['strategy' => 'defer']);
}

add_action('wp_enqueue_scripts', 'zw_add_videojs');
Expand Down

0 comments on commit 6007b0d

Please sign in to comment.