gajus / usus

Webpage pre-rendering service. ⚡️
Other
805 stars 33 forks source link

Separate inlineStyles and inlining of style imports into two separate options #12

Open gajus opened 7 years ago

gajus commented 7 years ago

There are users that want to inline the styles used on the page and avoid loading the rest of the styles entirely.

gajus commented 7 years ago

This is not as simple as it sounds, since it requires CSS coverage to work 100% accurately. In practice, I've noticed that at least font loading is not included in the CSS coverage. Furthermore, certain part of CSS usage will depend on the client, e.g. @supports usage.

Overall, I don't recommend this, but will keep an eye on the feature request.