Why async does not work on google Chrome mobile 92.0.4515

Asked

Viewed 21 times

-2

I am learning to work with async and I am testing the compatibility with old iphones, I am using the google Chrome of iphone 5s that is in version 92.0.4515 however I realized that async does not work, there is some correct way or is not available in old versions?

// Main.js
export async function hello(){
  alert("Hello " + navigator.userAgent)
}

// index.html
(async function(){
  const start = await import('./main.js');
  start.hello();
})();

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.