虽然很久没更新博客了,但是有一天想上来看看,发现尼玛访问速度狗屎一般。还以为空间出问题了呢,然后排查下来发现大部分用wordpress搭建的网站访问速度都跟狗屎一般。。。。。。 ?这引起了我极大的兴趣来研究一下。 先看看为啥会慢: 为啥wordpress会访问g
虽然很久没更新博客了,但是有一天想上来看看,发现尼玛访问速度狗屎一般。还以为空间出问题了呢,然后排查下来发现大部分用wordpress搭建的网站访问速度都跟狗屎一般。。。。。。 ?这引起了我极大的兴趣来研究一下。
先看看为啥会慢:
为啥wordpress会访问googleapis这个域名,因为它需要下载一个字体。谁允许它下载的?貌似是wordpress3.8以上会有这么一出,蛋疼。在天朝,能不和google的域名混在一起就不要放一起,你懂得。
接下来就是如何搞掉它了。用wordpress的人如果这个时候首先不想到去下个插件自动屏蔽掉它就太2了。。。。
网上大致搜索了一下。2个主流插件和1个国人开发的插件:
- Disable Google Fonts ? ?(我正在用)
- Remove Open Sans font from WP core (据说首选,可惜我加载上去之后不起作用。。。扔了
- 国人开发的一个,我只看到一堆评价说垃圾代码特多,性能太差。。。。直接无视了。不过还是赞一个,至少自己动手做。
安装、启用、done
原文地址:wordpress突然变慢,都是googleapi字体惹的祸, 感谢原作者分享。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version
Recommended: Win version, supports code prompts!

Atom editor mac version download
The most popular open source editor

Notepad++7.3.1
Easy-to-use and free code editor

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
