diff --git a/ts/reviewer/index.ts b/ts/reviewer/index.ts index 297318221..7119ded42 100644 --- a/ts/reviewer/index.ts +++ b/ts/reviewer/index.ts @@ -92,6 +92,8 @@ async function _updateQA( const qa = document.getElementById("qa")!; + qa.style.opacity = "0"; + try { setInnerHTML(qa, html); } catch (error) { @@ -110,6 +112,8 @@ async function _updateQA( }) .catch(renderError("MathJax")); + qa.style.opacity = "1"; + await _runHook(onShownHook); }