revert top-level await async wrapper · Issue #816 · quoid/userscripts · GitHub
Skip to content

revert top-level await async wrapper #816

Description

@ACTCD

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
})();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions