Transições de página do Chrome

async function spaNavigate(data) {
  // Fallback
  if (!document.createDocumentTransition) {
    await updateTheDOMSomehow(data);
    return;
  }

  // With a transition
  const transition = document.createDocumentTransition();
  await transition.start(() => updateTheDOMSomehow(data));
  console.log("Transition complete!");
}
Kalle Henriksson