Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider loading fonts as static files instead of embedding #18

Open
apple502j opened this issue Feb 12, 2021 · 0 comments
Open

Consider loading fonts as static files instead of embedding #18

apple502j opened this issue Feb 12, 2021 · 0 comments

Comments

@apple502j
Copy link

Currently, fonts are embedded in the JavaScript file, and accounts for around 5% of scratch-gui bundle. Serving them as static files could reduce bundle size and allow fonts to be cached for more than a week (or whatever Scratch's deployment cycle is)

This requires asynchronous loading of fonts, but scratch-gui sort of does that already. Legacy Edge does not support FontFace.load but that is already the case with font-loader-hoc, so there should be no difference.

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

No branches or pull requests

2 participants