Double RAF + MutationObserver: Scroll Restoration After Micro-Frontend Redirects
Scroll restoration after a redirect isn't a scroll problem — it's a timing problem. State must survive the jump, the element must appear in the DOM, and it must be fully painted — in that order, at the right moment in the browser rendering pipeline.
2026.05 · Juejin (CN)