diff --git a/src/Roux/Html.hs b/src/Roux/Html.hs
index 8ea3f56..f7c4a9e 100644
--- a/src/Roux/Html.hs
+++ b/src/Roux/Html.hs
@@ -255,7 +255,7 @@ searchJs = T.unlines
, " if (items.length === 0) return '
No recipes found.
';"
, " let html = '';"
, " return html;"
@@ -317,10 +317,9 @@ searchJs = T.unlines
, "}"
, "window.addEventListener('hashchange', updateActiveNav);"
, ""
- , "// Initial render"
+ , "// Initial render -- setting hash triggers hashchange"
, "if (!location.hash) location.hash = 'alpha';"
- , "updateActiveNav();"
- , "render();"
+ , "else { updateActiveNav(); render(); }"
, ""
, "})();"
]