• Resolved a_usman

    (@a_usman)


    I have finally installed AO on main site, but I found a problem. I am using a social icons plugin which outputs small inline css in the head section. AO also gets the inline css automatically and compresses it. Now I have two CSS compressed by AO in the head section.

    I want to know is there any way not to allow AO to catch inline CSS?? If it catches, then it should add only one css file instead of two.

    https://www.ads-software.com/plugins/autoptimize/

Viewing 1 replies (of 1 total)
  • Plugin Author Frank Goossens

    (@futtta)

    H a_usman;
    you have 3 possibilities:
    * the “search only in head”-option
    * exclude from CSS-optimization based on a unique string in the inline CSS
    * the “autoptimize_css_include_inline”-filter in the API (just return false, cfr. example in autoptimize_helper.php_example)

    kind regards,
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘How to avoid compression of inline css in AO 1.9.0?’ is closed to new replies.