mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-23 14:07:24 +00:00
Import muxjs only once and asynchronously.
This commit is contained in:
parent
87ae10d6f5
commit
b5b238656b
@ -12,8 +12,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import("shaka-player/dist/controls.css");
|
import("shaka-player/dist/controls.css");
|
||||||
const shaka = import("shaka-player/dist/shaka-player.ui.js");
|
const shaka = import("shaka-player/dist/shaka-player.ui.js");
|
||||||
import muxjs from "mux.js";
|
if (!window.muxjs) {
|
||||||
|
import("mux.js").then(muxjs => {
|
||||||
window.muxjs = muxjs;
|
window.muxjs = muxjs;
|
||||||
|
});
|
||||||
|
}
|
||||||
const hotkeys = import("hotkeys-js");
|
const hotkeys = import("hotkeys-js");
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
Loading…
Reference in New Issue
Block a user