Open capi1O opened 4 years ago
Having the same issue. The behaviour is the same for YouTube & Vimeo player.
From my initial tests, the resources are only loaded once (1 HTTP request, tested in Chrome). But it would be cleaner that the resources are inserted & loaded once.
Expected Behavior
vimeo player script should be appended to head only once
Actual Behavior
Steps to Reproduce
Demo codepen : https://codepen.io/monkeydri/pen/vYLJKLm?editors=1010 with 2 vimeo players added according to documentation (https://github.com/sampotts/plyr#multiple-players):
Side question: how to tell plyr not to load vimeo player script ? I already use it somewhere else on the page...
Note: I did not tried with youtube player