• Resolved carmpocalypse

    (@carmpocalypse)


    Hello,

    When hitting save after adding the critical css snippet in to ‘Eliminate render-blocking CSS?’ section in the plugin, the code disappears from the box.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    that is likely due the CSS containing URL’s (for background images or fonts) that have e.g. wp-content/themes/themename/css/../images/background-image.jpg which a security component (“web application firewall”) block because it (vaguely) resembles a directory traversal attack. as a workaround you’ll have to “resolve” the URL into one without the ../ where the previous example becomes wp-content/themes/themename/images/background-image.jpg

    hope this helps,
    frank

    Thread Starter carmpocalypse

    (@carmpocalypse)

    @optimizingmatters

    Thanks for the info. Yeah, I use Sucuri Firewall/CDN.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical CSS Code Disappears’ is closed to new replies.