jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

[audio] & [playlist] shortcodes and Infinite Scroll don't work together

Open tsiger opened this issue 11 years ago • 6 comments

If [audio] & [playlist] content isn't visible on page load (loaded using infinite scroll afterwards) the player doesn't get initialised.

Tested on various themes including TwentyFifteen

tsiger avatar Mar 31 '15 11:03 tsiger

+1

Also, the same seems to be happening to the [video] content, since it uses Media Element as well; on a related note, some embeds do not work as well, when loaded through infinite scrolling.

andreg avatar May 06 '15 19:05 andreg

related to https://github.com/Automattic/jetpack/issues/1439 ?

richardmtl avatar May 06 '15 21:05 richardmtl

Not exactly sure, but it might be.

andreg avatar May 06 '15 21:05 andreg

I think I see the problem (for playlists at least), but I'm not sure of the best solution yet. Normally if you load a playlist this code in core adds a couple of underscore js templates to the DOM as script tags. As these scripts are constructed, rather than enqueued the normal way infinity.php doesn't load them and so the playlist doesn't render.

chrisdc avatar May 08 '15 21:05 chrisdc

#5518

jeherve avatar Nov 07 '16 12:11 jeherve

Closing as wontfix, as audio and playlist are now provided by WordPress Core and should be handled by Infinite Scroll.

jeherve avatar Jan 12 '17 10:01 jeherve