• Resolved Motionous

    (@motionous)


    Hello,
    I came across your blog post “Google Font display swap in Autoptimize?” here: https://blog.futtta.be/2019/05/24/google-font-display-swap-in-autoptimize/ and I wonder if such feature would be compatible with the “Combine and load fonts asynchronously with webfont.js” option.
    If so,
    – Could you tell approximately when such option will be available?
    – In the meanwhile, any advice in order to implement the following code?

    add_filter('autoptimize_filter_extra_gfont_fontstring','add_display');
    function add_display($in) {
      return $in.'&display=swap';
    }

    It is not meant to be put into functions.php, is it?

    Anyway, as said before in another support topic, thanks a lot for your amazing plugins and contributions!

    Best,

    • This topic was modified 5 years, 3 months ago by Motionous.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google Font display swap’ is closed to new replies.