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

    (@optimizingmatters)

    By default AO only adds crossorigin for https://fonts.gstatic.com as -at least at the time I added that code- crossorigin was only required for domains from which fonts were downloaded, but you can use the autoptimize_extra_filter_preconn_crossorigin-filter (array in, array out) to add domains that need crossorigin yourself with a couple of lines of code.

    hope this helps,
    frank

    Thread Starter gb3k

    (@gb3k)

    Thank you Frank!
    How do I use the filter? in functions.php? Is there any documentation for that?
    Best,
    Gustavo

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, you’ll first and foremost have to create the code that hooks into that filter, but once you have that, the safest & easiest way would be to use the code snippets plugin 🙂

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

The topic ‘Preconnect’ is closed to new replies.