• Resolved timholz

    (@timholz)


    Hi – how can this improvement for inline all css be achieved?
    Is this the right filter?

    add_filter( 'autoptimize_filter_css_replacetag', 'my_ao_override_css_replacetag', 10, 1 );
    function my_ao_override_css_replacetag( $replacetag ) {
        //putting '<meta name="inline" content="css">' after seo-meta-tags in the header.php
        return array( '<meta name="inline" content="css">', 'replace' );
    }

    What other improvements for inlining all css are you referring to?
    Is there a list with all the new filters?
    Thanks for your plugin?
    theo

    p.s.: i found a list with some filters, but i seems that this list is eight years old (ao-filter-list)

    • This topic was modified 2 years, 3 months ago by timholz.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘when all CSS is inlined, try doing so after SEO meta-tags’ is closed to new replies.