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

Report use percentage #13

Open
theKashey opened this issue Dec 25, 2019 · 2 comments
Open

Report use percentage #13

theKashey opened this issue Dec 25, 2019 · 2 comments

Comments

@theKashey
Copy link
Owner

Sometimes, by fact quite often, almost all styles might be inlined. And then the "real" file would be downloaded, doubling the traffic.

So, what about

  • reporting used coverage
  • and if it is above some threshold (80%) - inline the rest
  • and somehow report that the original file might be downloaded in a low priority
@zeppelinen
Copy link

Yup. I am testing used-styles on our project and efficiency looks pretty bad.
Coverage shows less than 50% efficiency.

@theKashey
Copy link
Owner Author

@zeppelinen - could you elaborate a bit? What does mean "coverage" in your case? "used" is > 50% of a whole CSS?
Then it's all about the speed of your backend - if 16ms you can save my inlining styles matters for you - then it's worth. In another case it might not.

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

No branches or pull requests

2 participants