Why does WordPress warn Google by default that I am writing this?

Jumping between web sites

- Ah, don't you know that the default WordPress editor has a hardcoded call in the code to the Google Fonts Noto font and that you have to touch the core to avoid it?

Roberto Weiko to Nahuai and me last week, making us choke on our beer.

I know that many of you will not care because you have not understood half of the words written there. I know that many others, although you understand it, don't care because "if Google Fonts are everywhere, who cares about one more". And I know that some of you will have the same shock I had when I found out about it.

The first thing I did was to check it for myself (not that I don't believe Roberto, but... whaaaat?). I downloaded the WordPress package and there it was in the file wp-includes/script-loader.php on line 738 and following.

I did a clean install and as soon as I entered to create a new entry or a new page, there was the call to the Google servers to tell them "hey, here's one more website!".

I was surprised because a few years ago it was decided to use the system fonts on the WordPress desktop (in version 4.6) and it was a quite celebrated change, as it made the loading faster (external resource calls are avoided) and it was more adapted to the experience of each user on his computer with his operating system.

A couple of years ago, due to the GDPR, there was a lot of talk about what Google was or was not tracking with its typographic service. It is clear that it has "democratized" and expanded the use of typefaces all over the web, but to think that it does it in exchange for nothing, and knowing that "don't be evil" is long gone, is a bit naive. It was never clear, despite his attempts to tell... something.

I was also surprised because having followed the development of the Twenty Twenty theme by Anders Norén and team, in September last year they decided on the recommendation of Garrett Hyder of #core-privacy not to use Google Fonts fonts and to use only the system fonts.

And so I came to WordPress Trac ticket #46169: Use system fonts for the block editor.

I recommend you to read it because it is all extensively argued and it seems that beyond the "but with Noto it is nicer", there are not many arguments in favor of what is happening.

I spoke to Garrett this week to find out what had happened with this, before I started with the conspiracies... and he said it just sat there, with no interest from anyone. It takes the Gutenberg design team to give their input and... now. What is really needed is for those of us who care about these kinds of privacy issues to raise our voices a little bit about this issue and get it revived so that it can be solved as soon as possible.

So whether it's for RGPD, whether it's for admin loading speed, whether it's for aesthetic aspects, whether it's for feeding less data to the Google monster, or whatever motivation you have, share your opinion and make us heard. We'll see if it's true that WordPress is made by all of us. I trust it is.

Update 13/04 13:00 - Code to remove Noto's charge

Fernando Puente (thank you very much!) leaves us a code to avoid that this load is made in the administrator of our web:

if(is_admin())
    add_filter( 'gettext_with_context', 'remove_google_font_noto',
PHP_INT_MIN, 4 );
function remove_google_font_noto( $translated, $original, $context, $domain ) {
    if ( $original === 'Noto Serif:400,400i,700,700i')
        return 'off';
    return $translated;
}

As long as they don't change that line, this is going to work, but anyway, let's try to get it out of core, right?

Responses

  1. Avatar of Fernando Puente

    That's right, as long as you are using the block editor. With the classic one it does not load.
    Calls to gravatar.com are also made as soon as you enter the desktop.

  2. Avatar of Carlos A.

    More than surprising, I find it disappointing.

  3. Avatar of Pablo Moratinos

    Whaaaaaaaat!!! :-(

  4. Gabri Gonzalez's Avatar

    Amazing !!! Not even for the remotest I would have fallen in the typography of the editor, thanks for explaining it, and thanks Fernando for the tip 🤩.


    1. Avatar of Fernando Puente
      Fernando Puente

      Nothing. Code that can be improved for sure, I'm too old for programming.

  5. Avatar of Álvaro Gómez Velasco

    "Is Google here? Put it on."


  6. Avatar of Fernando Puente

    My pleasure. Thanks to @ciudadanoB who is the one who stings me with these things.


  7. Mauricio's Avatar

    I freeze mai frend! 🤨

  8. Avatar of 🏠Eduardo Romero Q. 🇮🇨 ツ

    At least you should be informed and be given the option in the admin menu to choose if you don't mind having those fonts active... What less!

  9. Avatar of roberto tuñón

    Vaaaya heeeeavy (as they would say in my neighborhood).

    I notice a certain laziness along with a great deal of meaninglessness.

    I can't believe it.

Mentions

  • roberto tuñón
  • Fernando Puente
  • 🏠Eduardo Romero Q. 🇮🇨 ツ
  • Mauricio
  • Fernando Puente
  • Álvaro Gómez Velasco
  • Gabri Gonzalez
  • Pablo Moratinos
  • Ana Cirujano (at home 🏠)
  • Carlos A.
  • Fernando Puente

Leave a reply

Your e-mail address will not be published. Required fields are marked with *.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit the URL of your response here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.

Other blog entries...