-
Notifications
You must be signed in to change notification settings - Fork 136
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
Critical CSS #744
Critical CSS #744
Conversation
This PR is more of a proof of concept at the moment, I think, because there's probably a lot more to figure out as far as Critical CSS goes. This does the job for our own partials, but how do we handle Critical CSS in regards to styles set in the Tailwind config file? We'll also need to write up documentation on when and how to add to Critical CSS. Since we don't include a hero or anything like that in the theme anymore, for instance, we'll want to educate the team on what to add to Critical CSS so we're not bloating it but also not missing anything important. |
@coreymcollins Nicely done. I think you should demo during the FEEBEE Scrum tomorrow!!! |
Merged |
Merging main into feature branch
Giving this a bump after a fresh merge from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
DESCRIPTION
This separates some critical CSS partials and compiles them into their own file, which is then added inline in the
<head>
.What I did:
menus.scss
,mobile-menus.scss
, andheader.scss
from their original locations to asrc/scss/critical/
directory.webpack.config.js
file to produce multiple build files forindex.css
andcritical.css
<head>
What I'd like to get some 👀 on:
critical.css
as neededSCREENSHOTS
OTHER
STEPS TO VERIFY
npm run build
<head>
and the header & menus are looking goodDOCUMENTATION
Will this pull request require updating the wd_s wiki?
I can see us wanting to update around Critical CSS paths and what should be included there, so I'll start looking at the existing docs to see where this could best fit.