• Resolved mbainbridge

    (@mbainbridge)


    Hi there,

    I just download and installed your plugin a few days ago and it is awesome! I am also thrilled that I can exclude only some JS scripts while still keeping aggregated inline JS. This is especially helpful as I have a multilingual site and most of the time the only difference is the JS is a minor one, for example “Ja” instead of “Yes”.

    This does leave me with one question though. Is there a way to do something similar with only a certain CSS line items? How WPML works, as you may already know, is that a translated page/post/product/whatever gets a new page ID number. I have, for example, only one difference in the cached autoptimized css file between my two languages.
    For English:
    .menu-item-13429.menu-item-design-sized>.sub-menu-dropdown{min-height:270px;width:330px}

    And for German:
    .menu-item-13430.menu-item-design-sized>.sub-menu-dropdown{min-height:270px;width:330px}

    Notice the only difference between them is the last two numbers behind “.menu-item-134XX”

    It would be sad if I had to uncheck “Also aggregate inline CSS” just because of one css line item.
    Do you perhaps have a workaround or idea for this?

    Many thanks in advance!
    Cheers,
    Michael

    • This topic was modified 7 years, 7 months ago by mbainbridge.
    • This topic was modified 7 years, 7 months ago by mbainbridge.
    • This topic was modified 7 years, 7 months ago by mbainbridge.
    • This topic was modified 7 years, 7 months ago by mbainbridge.

    The page I need help with: [log in to see the link]

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

    (@optimizingmatters)

    purely based on the examples you provided you could add menu-item-design-sized to the comma-separated CSS optimization exclusion list, but not aggregating inline CSS _should_ not have a negative perf. impact so that’s a perfectly acceptable solution as well 🙂

    enjoy the weekend!
    frank

    Thread Starter mbainbridge

    (@mbainbridge)

    Hi Frank,

    Thanks so much for the quick response!

    Good to know. I just assumed that aggregating the inline CSS would increase perf. But if it shouldn’t , I will simply deactivate it and continually test the perf. to confirm.

    Enjoy your weekend as well!

    Cheers,
    Michael

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    You’re welcome Micheal, feel free to leave a review of the plugin and support here! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exclude only 1 CSS line item from caching?’ is closed to new replies.