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

Inline bootstrap #30

Open
ZeroTworu opened this issue Sep 27, 2018 · 1 comment
Open

Inline bootstrap #30

ZeroTworu opened this issue Sep 27, 2018 · 1 comment
Labels

Comments

@ZeroTworu
Copy link

How can i define special CSS rules to inline into html?
Problem:
I using bootstrap and this plugin, but plugin inline only part of bootstrap css (buttons dont inline), so i see
sam "lag" after page loading, In first loading "base" browser buttons, and then after ~0.5s loaded normal buttons.

@thescientist13
Copy link
Collaborator

thescientist13 commented Sep 30, 2018

this plugin doesn't really do much other than just provide a wrapper around critical itself, so the best bet would be to look up what the options are available in the critical API and try that out with this plugin.

AFAIK, critical depends on a index.html that it can process to try and find what those critical styles are so it can inline them. Maybe some of your code is async and not getting "picked up" by critical? There could be other reasons, based on the structure / build of your code.

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

No branches or pull requests

2 participants