Viewing 5 replies - 1 through 5 (of 5 total)
  • I believe the idea is to load the fonts off CDN for “AMP” enabled devices which will cache the fonts and not need them on next amp enabled site visit; and the chosen fonts may be ideal for internationalization.

    Fonts only loaded and cached in devices able to load the AMP version in place of normal responsive version. Meaning folks using IE, older Safari, Chrome, Opera, FF, etc. will never see the AMP version.

    You can, of course, change the fonts to whatever you want.

    And FYI, the fonts *do* have fallback.

    font-family: 'Merriweather', Serif;

    Thread Starter Ramanan

    (@superpoincare)

    Even if you define a fallback, it doesn’t mean the browser will immediately apply it.

    Even if the fonts are on a CDN, the browser has to wait for the fonts to be requested and downloaded to start painting for first loads.

    It goes against the philosophy of Google that webpages be available ASAP for the user to read.

    You need something like a Webfontloader to load fonts asynchronously. Else there’s less gain optimizing.

    Yes. I’ve been doing webdev for 21 years and WP for 12 so well aware.

    I”m just letting you know this option has proven to be best solution for “most people” who don’t know how to properly specify https font loading, or may not understand how web-safe font stacks work. Some older default OS fonts also are not as well optimized as modern fonts — so, loading a TTF wont when a WOFF might be better is one example.

    If you think it’s bug post a note on GITHUB.

    It’s not a bug, and so if you don’t need support here, then opinion posts don’t do much. You can, of course, roll your own solution. But this is how this plugin works. It works for our news portals and static site also 100%, so we’re getting pages served by Google and have green bolt icon in SERPS, so guess it’s working for us ??

    Technically you may be correct, but this solution *does* work well for mobile users and is currently being used by large high-traffic WP VIP sites without issue. You don’t have to use it, if you don’t want to. And again, you can spec out your own fonts if it makes your life easier.

    (( I don’t work here … this is just an opinion as an early adopter of AMP tech on dozens of large news portals ))

    Thread Starter Ramanan

    (@superpoincare)

    I don’t think it’s any issue with Google’s AMP.

    Google’s own docs suggest loading fonts asynchronously.

    “then opinion posts don’t do much. “

    Wow, users’ suggestions don’t matter?

    Sorry, guess point was not a ‘support’ issue, so was suggesting you post that on the actual place where the developers work on the plugin:
    https://github.com/Automattic/amp-wp/issues

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fonts’ is closed to new replies.