Open route only after ajax request completed?

hi, i have a page in my app that has an ajax request. when i navigate to this page, it waits until the ajax request completion and then run $update().
what i want is opening the page only after the ajax request is completed and the page completly ready without runing $update.

Then your component function must be an async function:

export default async function (props, ctx) {
  await loadSomething();
  return $render;