When we solved #749, we added async wrapper by the way to support top-level await in the beta version.
But it looks like the async wrapper adds more latency than I had previously expected, so it should be optional.
We should revert the change:
-
It should be disabled by default
-
Perhaps it could be enabled via metadata like @async
-
Or always expect users to use async wrappers themselves.
(async function () {
/// userscript code
})();
When we solved #749, we added async wrapper by the way to support top-level await in the beta version.
But it looks like the async wrapper adds more latency than I had previously expected, so it should be optional.
We should revert the change:
It should be disabled by default
Perhaps it could be enabled via metadata like
@asyncOr always expect users to use async wrappers themselves.