Support » Plugin: W3 Total Cache » Moving HTTP/2 to Preload Minified CSS

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Marko Vasiljevic

    (@vmarko)

    Hello @mentikyusmantara,

    Thank you for your inquiry and I am happy to answer.
    You can grab the URL by attaching it to 'w3tc_minify_http2_preload_url' filter, and store it.
    Once you have it – attach to w3tc_processed_content filter and add your preload tag to the content, I.E.
    str_replace('<head>', '<head>mycontent', $buffer);

    I hope this helps

    Best thanks,
    can you suggest the simple trick 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.