• Resolved adamovic

    (@adamovic)


    Hi,

    I’m doing a cleanse of my website’s unused CSS and there are some CSS files currently loaded by some plugins or my theme, which aren’t used, so I’m planning to dequeue in functions.php.

    I currently have the aggregate CSS option unchecked in AO, so I have a clearer picture of all CSS filed loaded on my site, but I plan to turn it back on when I’m done.

    The question that I have is, will dequeuing the original CSS files in functions.php and then aggregating them with AO work or will AO still aggregate all the files (including the ones I dequeued)?

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

    (@optimizingmatters)

    The question that I have is, will dequeuing the original CSS files in functions.php and then aggregating them with AO work

    yes, absolutely ??

    (AO works at request level after CSS/ JS queueing has been completed, so it just *sees* the enqueued CSS/ JS and combines & minifies that).

    Thread Starter adamovic

    (@adamovic)

    Great, that’s what I wanted to hear! ??

    Thank you for the quick answer.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘First agregate with Autoptimize and then dequeue or the other way around?’ is closed to new replies.