Viewerframe Mode Refresh Top [best] Jun 2026

"Refresh top when switching to next/previous image"

The viewerframe scrolls to top, then visually jumps down, then back up. Cause: Asynchronous rendering. The scrollTop = 0 runs before the new content is fully painted. Fix: Use requestAnimationFrame or setTimeout(..., 0) . viewerframe mode refresh top

The primary purpose of this mode is to automate the display of visual information while managing network resources. "Refresh top when switching to next/previous image" The

The "top" parameter is the most specific part of this command. It typically refers to one of two things: then visually jumps down

.viewerframe width: 100%; height: 500px; overflow-y: auto; border: 1px solid #ccc; scroll-behavior: smooth; /* For pleasant top reset */

The simplest (though least flexible) way to force a refresh is through a meta tag within the frame's HTML: