diff --git a/static/app.js b/static/app.js index 9c885ee..6c0988b 100644 --- a/static/app.js +++ b/static/app.js @@ -450,6 +450,15 @@ function initStatusPage(jobId, initialStatus) { var liveBoxUnloading = document.getElementById('live-box-unloading'); var liveBoxNet = document.getElementById('live-box-net'); + // Hide the placeholder once the MJPEG stream delivers its first frame. + // The overlay sits on top of the img, so it must be removed, not just + // hidden behind it. Toggling OFF re-shows it via the change handler. + if (livePreviewImg) { + livePreviewImg.addEventListener('load', function () { + if (previewPlaceholder) previewPlaceholder.style.display = 'none'; + }); + } + if (previewToggle) { previewToggle.addEventListener('change', function() { if (this.checked) {