• Resolved Andreslav

    (@andreslav)


    Is it possible using the plugin API to merge and compress specific css fragments (inline or in files by id) and then display a link to the result before the footer?

    • This topic was modified 1 year, 9 months ago by Andreslav.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    I was going to reply no, but as

    • one can set the exclusion list via the API (or create a a allowlist instead to specify which CSS it to be optimized)
    • one can change the “injection point” of the aggregated CSS via the API

      the answer is yes ??

      relevant filters; autoptimize_filter_css_allowlist, autoptimize_filter_css_exclude and autoptimize_filter_css_replacetag ..

      let me know if you need more info! ??

    Thread Starter Andreslav

    (@andreslav)

    Thanks! I managed to do something ??

    It is a pity, of course, that it is not possible to create several injection points: there would be a certain set of styles for each.

    • This reply was modified 1 year, 9 months ago by Andreslav.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    It is a pity, of course, that it is not possible to create several injection points: there would be a certain set of styles for each.

    afraid that indeed is not possible.

    Thanks! I managed to do something ??

    happy to read so, feel free to leave a review of the plugin and support here! ??

    Thread Starter Andreslav

    (@andreslav)

    Left a review ??

    Note for those who follow the same path as me: if you set “allowlist”, then “dontmove” is ignored. Also, to group inline styles, you need to pass true to autoptimize_css_include_inline.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pinpoint Plugin Targeting’ is closed to new replies.