Skip to content

Commit

Permalink
init navigation after resources for current page are loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Feb 26, 2021
1 parent 5f2246c commit 168a79c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby/cache-dir/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ loader.setApiRunner(apiRunner)

window.___loader = publicLoader

navigationInit()

// Do dummy dynamic import so the jsonp __webpack_require__.e is added to the commons.js
// bundle. This ensures hot reloading doesn't break when someone first adds
// a dynamic import.
Expand Down Expand Up @@ -161,6 +159,8 @@ apiRunnerAsync(`onClientEntry`).then(() => {
loader.loadPage(`/404.html`),
loader.loadPage(window.location.pathname),
]).then(() => {
navigationInit()

domReady(() => {
if (dismissLoadingIndicator) {
dismissLoadingIndicator()
Expand Down

0 comments on commit 168a79c

Please sign in to comment.