

新版 WordPress 預設的佈景主體將不會使用 Google Fonts
source link: https://blog.gslin.org/archives/2023/03/14/11093/%e6%96%b0%e7%89%88-wordpress-%e9%a0%90%e8%a8%ad%e7%9a%84%e4%bd%88%e6%99%af%e4%b8%bb%e9%ab%94%e5%b0%87%e4%b8%8d%e6%9c%83%e4%bd%bf%e7%94%a8-google-fonts/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

新版 WordPress 預設的佈景主體將不會使用 Google Fonts
新版 WordPress 的預設佈景主體 (Theme) 出於隱私考量,將不會使用 Google Fonts:「Google Fonts are included locally in bundled themes」。
這邊講的是年份系列的 Theme,從 Twenty Twelve (2012) 到 Twenty Seventeen (2017):

再更後新的版本,首先是沒有 Twelve Eighteen (2018) (可以從「Themes by WordPress.org | WordPress.org」這邊翻),而從 Twelve Nineteen (2019) 後都沒有使用 Google Fonts 了,在 GitHub 上的 WordPress/twentynineteen 這邊可以 clone 下來確認:
$ git grep google classes/class-twentynineteen-svg-icons.php: 'google-plus' => array( classes/class-twentynineteen-svg-icons.php: 'plus.google.com', classes/class-twentynineteen-svg-icons.php: 'google-plus' => ' classes/class-twentynineteen-svg-icons.php: 'google' => '
官方還是有給繼續使用 Google Fonts 的方法,在「Continuing to use Google Fonts」這段有提到設定的方式。
Related
Google Fonts 的加速方式
這邊講的是透過 css (以及 js) 使用的 Google Fonts,作者想要改善這塊,加速網頁的速度:「Should you self-host Google Fonts?」。 作者第一個提到的技巧是個懶人技巧,只要加上 preconnect 預先把 HTTPS 連線建好,就可以提昇不少速度。因為這可以降低先取得 css 後才建立連線的速度差異: 作者有提到 Google 在 css 檔案的 header 裡面本來就有加上 preconnect,但從前後比較可以看出,整個網頁的結束時間差了一秒 (這是作者在 Google Chrome 的 3G Slow 設定下模擬的): 另外一個技巧是增加 swap,讓 Google Fonts 還沒有讀進來之前先用系統有的字型呈現。這樣不會出現整頁只有圖,然後突然字都冒出來的情況,也就是把一般在用的:
February 23, 2020In "CDN"
法國 CNIL 認為 Google Analytics 傳輸資料回美國違反 GDPR
先前提過德國認為沒有告知使用者網站使用 Google Fonts 違反 GDPR (可以參考先前寫的「德國的地方法院說使用 Google Fonts 服務沒有告知使用者違反 GDPR」這篇),這次法國的 CNIL (英文維基百科的介紹:「Commission nationale de l'informatique et des libertés」,是法國政府的一個獨立單位) 認定 Google Analytics 將資料傳回美國違反 GDPR:「Use of Google Analytics and data transfers to the United States: the CNIL orders a website manager/operator to comply」。 文章的 summary 講的差不多: Google Analytics provides statistics on website…
February 11, 2022In "Computer"
Firefox 在 Strict Tracking Protection 模式下閹割 Google Analytics
在 Twitter 上看到 Firefox 在 Strict Tracking Protection 模式下會閹割掉 Google Analytics: 👀Firefox replaces GA with a fake no-op GA (rather than outright blocking it) in strict tracking protection, to prevent websites from breaking:"Google Analytics is being shimmed by Firefox. See https://t.co/mfx5HZxueL for details." pic.twitter.com/PMNRqgpOyX— Jakub G (@__jakub_g) February 26, 2021…
February 28, 2021In "Browser"
Author Gea-Suan LinPosted on March 14, 2023Categories Blog, Computer, Murmuring, Network, Privacy, Software, WWWTags default, fonts, google, privacy, theme, wordpress
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Notify me of follow-up comments by email.
Notify me of new posts by email.
To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Learn More)
Post navigation
Recommend
-
10
vim-polyglot 把預設的 tabstop 改成 2發現 Vim 開 Makefile 類的檔案 (包括 GNUmakefile) 的 tab 都變成 2 格,交叉測了一下發現是
-
11
Firefox 86 預設支援 AVIF 影像格式在「Firefox 86: AVIF support enabled by default」這邊看到的消息,在
-
9
rsync 的預設值是傳整個檔案,不是 delta 剛好最近工作上需要透過 4G 網路傳大檔案,但希望大檔案傳到一半斷掉後可以續傳,而不要浪費頻寬整個重傳,所以查了資料並且測了一些東西... 其中一個比較特別的是發現
-
16
FreeBSD 把 root 預設的 shell 改成 /bin/sh 在 Hacker News 首頁上看到 FreeBSD 把 root 的 shell 從 /bin/csh 換成 /bin/sh 了:「
-
8
如何以 Guest 身份將 Azure 的 Service Principal (服務主體) 加入角色指派 最近加入到一個客戶的 Azure 訂用帳戶設定 CI/CD,在做這件事情之前,當然是先建立好 Service Principal (服務主體),然後才進行角色指派,讓該服務主體擁有必要的權限才能進...
-
9
Raspberry Pi 的 OS 將不會有 pi 這個預設帳號與 raspberry 的密碼,改在裝機時詢問使用者帳號與密碼 Raspberry Pi OS 改掉預設的帳號 pi 與密碼 ...
-
7
HTML 文件圖片預設寬高比
-
7
Laravel 將不會有 LTS 版本 查資料的時候發現,在 Laravel 9 剛發佈的時候是有掛
-
7
如何預設為每個模型及遷移加上軟刪除? 2022-10-26 約 1692 字 / 需 9 分鐘閱讀 原文:Povilas Korop —
-
9
Google Chrome 將在 115 版之後預設使用 HTTPS 連線 Google Chrome (
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK