From 2c49a821fa37aae6aa2b89192f5452e9af82f785 Mon Sep 17 00:00:00 2001 From: albertas-jn <24507839+albertas-jn@users.noreply.github.com> Date: Sun, 8 Oct 2023 17:11:44 +0200 Subject: [PATCH] Disable preloading of first section in Playback --- frontend/src/components/Playback/Playback.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Playback/Playback.js b/frontend/src/components/Playback/Playback.js index 3ed2e2c64..94bccc882 100644 --- a/frontend/src/components/Playback/Playback.js +++ b/frontend/src/components/Playback/Playback.js @@ -49,9 +49,9 @@ const Playback = ({ }, [playerIndex]); // Preload first section - useEffect(() => { - return audio.loadUntilAvailable(MEDIA_ROOT + sections[0].url, () => {}); - }, [sections]); + // useEffect(() => { + // return audio.loadUntilAvailable(MEDIA_ROOT + sections[0].url, () => {}); + // }, [sections]); // Cancel events const cancelAudioListeners = useCallback(() => {