not hidden player, just 0w0h, and increased load time

This commit is contained in:
Josh Patra
2025-04-20 15:26:52 -04:00
parent cb5e672c75
commit a07c6de746

View File

@@ -273,7 +273,7 @@
widget.seekTo(0); widget.seekTo(0);
loading = false; loading = false;
widgetReady = true; widgetReady = true;
}, 750); }, 1500);
}); });
widget.bind(SC.Widget.Events.PLAY, () => { widget.bind(SC.Widget.Events.PLAY, () => {
@@ -521,11 +521,11 @@
<iframe <iframe
bind:this={iframeElement} bind:this={iframeElement}
class="hidden"
src={`https://w.soundcloud.com/player/?url=${encodeURIComponent(currentTrack.url)}`} src={`https://w.soundcloud.com/player/?url=${encodeURIComponent(currentTrack.url)}`}
style="position:absolute; width:0; height:0; border:0; overflow:hidden; visibility:hidden;"
allow="autoplay" allow="autoplay"
title="preview player" title="preview player"
></iframe> />
<!-- Bottompinned controls --> <!-- Bottompinned controls -->
<div class="mt-auto px-4 pb-4"> <div class="mt-auto px-4 pb-4">