You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was pretty excited to find this today, since I was going to have a really hard time achieving our lighhouse scores without this.
As soon as I implemented the deferred CSS / inline above the fold option, I actually lost points with another issue around removing unused css rules. I see we can set viewport dimensions so I imagine that I could simply set the viewport to max-height (it's a long scrolling page with 150k height, but maybe it'll work)
As a feature request it would be nice if there was an option to ask to the whole site and output the stuff that is used rather than trying to ballpark the actual height and crossing our fingers.
This doesn't sound like something that's within the scope of Penthouse. Penthouse's job is to take all of your CSS and then return a portion of it based on the elements that are in an initial viewport (above the fold).
It isn't the job of Penthouse to determine any unused CSS selectors you may have elsewhere in your stylesheet and it certainly isn't the job of Penthouse to retrieve non-critical CSS further down the page.
Are you comparing the generated Penthouse stylesheet to your original stylesheet and removing the styles extracted by Penthouse? If not then you may be seeing duplicate CSS which is maybe what Lighthouse is complaining about.
More generally, I'd suggest using PurgeCSS to remove unused CSS from your project.
I was pretty excited to find this today, since I was going to have a really hard time achieving our lighhouse scores without this.
As soon as I implemented the deferred CSS / inline above the fold option, I actually lost points with another issue around removing unused css rules. I see we can set viewport dimensions so I imagine that I could simply set the viewport to max-height (it's a long scrolling page with 150k height, but maybe it'll work)
As a feature request it would be nice if there was an option to ask to the whole site and output the stuff that is used rather than trying to ballpark the actual height and crossing our fingers.
This is the rule https://web.dev/unused-css-rules/
The text was updated successfully, but these errors were encountered: