1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Base64 Data-URI & Minify CSS

Discussion in 'Resolved Bug Reports' started by ForoStyle, Apr 16, 2015.

  1. ForoStyle

    ForoStyle Active Member

    If "Minify CSS" is enabled and having a "large" base64 data URIs in CSS, it cannot process the CSS.

    I encounter this issue when I'm using icon fonts and embed them in CSS with data URIs.

    Same bug, test case and solution: https://code.google.com/p/minify/issues/detail?id=300
    Last edited: Apr 16, 2015
  2. eberkund

    eberkund Active Member

    Not that this is a solution to the bug, but you really do not want to embed an entire icon font using base 64 because it does not allow the browser to cache what is a completely static asset. In this case the extra HTTP request is worth it.
  3. Mike

    Mike XenForo Developer Staff Member

    I would say that embedding a huge file in the CSS is unlikely to be particularly beneficial, especially with the extra size overhead of base 64 encoding.

    That said, I have worked around this for this particular case.

Share This Page