Skip to content

Conversation

FrankFang
Copy link
Contributor

Some browsers (like wechat's built-in browser) does not support top level await for now

Some browsers (like wechat's built-in browser) does not support top level await for now
@FrankFang FrankFang requested a review from antfu as a code owner December 10, 2022 11:19
@netlify
Copy link

netlify bot commented Dec 10, 2022

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a5781af
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/63946b4b18003900093355f3
😎 Deploy Preview https://deploy-preview-1981--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@antfu
Copy link
Member

antfu commented Dec 10, 2022

The top-level await is on purpose to block the rendering to avoid FOUC. Maybe we should make a gentle fallback, while keeping top-level await on browsers that support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants