All tags

TAG

#frontend

3articles

🔍Mirador Carries the Zoom Across Pages — preserveViewport Defaults and the @latest Pitfall

In Mirador, moving to the next page carries the previous page's zoom level and pan position over. That is the behavior of osdConfig.preserveViewport, whose default is true (it lives under osdConfig, not window). It has been true across Mirador 3.3.0 through 4.0.0, while the unreleased main branch has it as false. This post covers what the setting does and where it is controlled in the source, why resetting (false) is more natural when canvas sizes vary per page, and the pitfall of mirador@latest moving the default behavior under you — plus the fix: pin the version and set the option explicitly.

miradoriiifopenseadragonfrontend

🔍Next.js 16: useRouter().push() silently no-ops in production — pushState workaround

Notes on a Next.js 16 + next-intl app where useRouter().push() silently becomes a no-op only in production builds, breaking interactivity on a search page, and a history.pushState + popstate workaround that restores it.

nextjsnext-intlreactdebugging

💀Retiring a Stale Service Worker After a Framework Migration Using a Kill-Switch SW

Immediately after migrating a Nuxt 2 + @nuxtjs/pwa SPA to a different framework, some users kept seeing frozen, outdated HTML. The cause was the old Service Worker's cache-first strategy. This post documents the procedure for retiring it by serving a kill-switch SW at the same URL.

serviceworkerpwanuxtnextjs