From 5d3e7be6908fa5a87dfa2a4c23a703a0f07656a1 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sun, 6 Apr 2014 21:33:00 +0000 Subject: [PATCH] When dynamically instantiating `MediaElementPlayer` instances in JS, `preload="metadata"` is extremely wonky. `preload="none"` lets the file play right away. This has already been addressed for audio|video shortcodes, but also needs to be the case for playlists. When loading a playlist from a DOM cache or via AJAX, and when the sources match those already pre-loaded, the browser will sometimes donkey-punch the HTTP request for the first cached track selected. Set `preload="none"` for the empty `` tag for playlists. See commits related to #26779. git-svn-id: https://develop.svn.wordpress.org/trunk@27974 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index ba8f530b30..adeaed4ca3 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -1269,7 +1269,7 @@ function wp_playlist_shortcode( $attr ) {
- < controls="controls" preload="metadata" width=" controls="controls" preload="none" width=""