From 89352604fb283a6e16f9f34804f5a82606080eb2 Mon Sep 17 00:00:00 2001 From: rmens Date: Mon, 23 Dec 2024 17:16:54 +0100 Subject: [PATCH] Update VideoJS --- functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 3002f40..4b03c5d 100644 --- a/functions.php +++ b/functions.php @@ -946,9 +946,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.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']); + wp_enqueue_style('video.js', 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.20.0/video-js.min.css'); + wp_enqueue_script('video.js', 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.20.0/video.min.js', args:['strategy' => 'defer']); + wp_enqueue_script('video.js.nl', 'https://cdnjs.cloudflare.com/ajax/libs/video.js/8.20.0/lang/nl.min.js', args:['strategy' => 'defer']); } add_action('wp_enqueue_scripts', 'zw_add_videojs');