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

Only download used font files #8

Open
rsify opened this issue Apr 15, 2020 · 0 comments
Open

Only download used font files #8

rsify opened this issue Apr 15, 2020 · 0 comments
Labels
good first issue Good for newcomers optimization Speed things up research Further research is required

Comments

@rsify
Copy link
Owner

rsify commented Apr 15, 2020

Taking a screenshot on usegripeless.com needs around 7MB of resources to be downloaded on the first run (latter runs use browser cache) - most of which being imported fonts which the library currently blindly inlines even though 95% of the imported files aren't actually being used.

A potential solution is to use Document.fonts in newer browsers, haven't researched it extra deeply though.

@rsify rsify added research Further research is required optimization Speed things up labels Apr 15, 2020
@rsify rsify added the good first issue Good for newcomers label Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers optimization Speed things up research Further research is required
Projects
None yet
Development

No branches or pull requests

1 participant