Home › Forums › Pro Support › Pagespeed insight complains about non supported CSS properties
- This topic has 19 replies, 2 voices, and was last updated 2 years, 2 months ago by
elvin.
-
AuthorPosts
-
September 15, 2021 at 10:04 pm #33860
elvin
Moderatormodify the CSS to this:
.wpsp-overlay .wpsp-content-wrap { transition: none !important; flex: 0; }
All the CSS flagged were on
.wpsp-content-wrap
element. 🙂September 16, 2021 at 12:41 am #33868Bernhard
ParticipantNow a third list also gives the error.
September 16, 2021 at 7:56 pm #33895elvin
ModeratorWe can try being more list ID specific.
Example:
#wpsp-45396 .wpsp-overlay .wpsp-content-wrap { transition: none !important; flex: 0; } #wpsp-45396 .wp-show-posts-image.zoom img { transition: none !important; }
But I’m a bit hesitant with the 2nd half of this css because it may break the easing of the hover animation.
You can try changing the transition to
transition: transform !important;
or do a double entry of the same property just to cancel out the transition: all.Like this:
#wpsp-45396 .wpsp-overlay .wpsp-content-wrap { transition: none !important; flex: 0; } #wpsp-45396 .wp-show-posts-image.zoom img { transition: none; } #wpsp-45396 .wp-show-posts-image.zoom img { transition: transform !important; }
September 17, 2021 at 12:41 am #33897Bernhard
ParticipantHi Elvin,
I’m wondering if it’s necessary to investigate further. The PSI index is >90 and no CLS caused by this issue. I checked with different browser and everything seems ok.I looked also into the PSI results for desktop and there it says also
Unsupported CSS Property: color
so this could become a never ending story. On my site, the flex shrink message seems to be an all overlay lists with zoom on hover and more than one card. Maybe the new WPSP version will solve the problem?About the 3 lists on mobile, probably I will make a version with only one card for mobile.
Thank you 🙂
September 17, 2021 at 1:01 am #33902elvin
ModeratorI looked also into the PSI results for desktop and there it says also Unsupported CSS Property: color so this could become a never ending story. On my site, the flex shrink message seems to be an all overlay lists with zoom on hover and more than one card. Maybe the new WPSP version will solve the problem?
I don’t think the beta version will solve this because the issue is CSS-related and beta generates the same CSS as the current official release.
And the issue seems to be mostly about the interaction between WPSP’s CSS and the caching plugin you use. (since the flags don’t show up when there’s no caching plugin activated)
We can try more things though – See further suggestions here.
https://developers.google.com/web/fundamentals/performance/rendering/stick-to-compositor-only-properties-and-manage-layer-countSpecifically,
will-change
https://developer.mozilla.org/en-US/docs/Web/CSS/will-change -
AuthorPosts
- You must be logged in to reply to this topic.