WP Rocket with active unused css remove styles in offcanvas element

Hello,

do you have any advice on retaining styles in the offcanvas element when unused CSS is active from WP Rocket?

I tried to exclude by class and ID, but it didn’t help because, after some time, styles just disappeared.

Hey Ofir,

Thank you for reaching out!

Unfortunately, optimizing site speed performance, including handling the issue with unused CSS from WP Rocket, falls outside the scope of our theme support. However, I recommend checking the WP Rocket documentation for guidance on excluding specific styles or scripts, or you might want to consider reaching out to WP Rocket’s support team for further assistance with this matter, or you may consider our Boost service.

What’s worked for me is following this guide https://docs.wp-rocket.me/article/1718-troubleshoot-remove-unused-css-issues

Especially the part about comparing the non-cached version of the page with the cached version and then finding the missing class and adding it to the safelist.

Hope that helps.

Thank you for the link. I will check it out.

Hi @rosstm,

Thanks for sharing the details.

@ofirdoo,

Please let us know if you need any further help with this.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.