WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Minify breaks @font-face on IE (4 posts)

  1. akilham
    Member
    Posted 1 year ago #

    When I enable the Minify cache (using the default CSS minifier), my custom fonts (using @font-face) don't load. They work fine on all other browsers.

    Is there anything I can do to fix this?

    http://wordpress.org/plugins/w3-total-cache/

  2. dfumagalli
    Member
    Posted 1 year ago #

    Are you using manual minify? If so, you should press "View URL" and find what's calling your fonts. It's often pre-minified stuff and W3TC destroys pre-minified stuff when it tries to optimize it.

    If you are using autmatic minify, it's almost "normal" that portions of your website will have errors or will display poorly. Because automatic minify processes everything and in doing so, it includes exactly what was pre-optimized by the plug ins / theme authors and in re-optimizing pre-optimized stuff, W3TC breaks it hard.
    If this is the case you should switch to manual mode and follow my tutorial on how to deal with the issue.

  3. SpaceK33z
    Member
    Posted 1 year ago #

    This is because you can't minify @font-face in IE. You should, as dfumagalli said, manually minify it and leave the @font-face out of it. Put it back on top after you have minified it.

  4. akilham
    Member
    Posted 12 months ago #

    Thanks! I will look in to the manual minify :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic