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 have an events calendar plugin. wp-criticalcss is crawling infinitely forward and backwards on the calendar. Can we use a regex or filter to prevent this?
Also a forceExclude option similar to forceInclude is needed. I use Cloudflare Workers to cache and inline google fonts and t his plugin is duplicating the inline css which is quite heavy.
The text was updated successfully, but these errors were encountered:
Thanks for letting me know. Also a forceExclude option similar to forceInclude is needed This is simply passed through to the API, so there would need to be API support for this.
@pocketjoso would need to chime in regarding this.
For the crawling issue, can you give an example URL of a calender and urls it is hitting?
Hi,
There's currently no way to filter out At-rules such as @font-face.
The forceInclude option only filters out CSS selectors, and At-rules are not CSS selectors so they are not handled - the same would apply if we added API support for forceExclude.
I don't have any short term solution for this, but we might add support to filter out At-rules in the future.
From what I can see your font-face rules contribute 2kb to your critical css size - excluding any GZIP which would further reduce this size. As annoying as it is to have this duplication, perhaps it can be acceptable to keep until there's a way to handle it?
I have an events calendar plugin. wp-criticalcss is crawling infinitely forward and backwards on the calendar. Can we use a regex or filter to prevent this?
Also a forceExclude option similar to forceInclude is needed. I use Cloudflare Workers to cache and inline google fonts and t his plugin is duplicating the inline css which is quite heavy.
The text was updated successfully, but these errors were encountered: