[英]Are there any Wordpress websites that have scored over 90 on Google's PageSpeed Insights?
My website uses Wordpress.我的网站使用 Wordpress。 I'd like to get over 90 on Google's PageSpeed Insights.
我想在 Google 的 PageSpeed Insights 上获得 90 以上的分数。
I guess the first thing I'd like to find out if that is even possible.我想我首先想知道这是否可能。
I was hoping to find a Wordpress site that scores 90 or above on Google's PageSpeed Insights.我希望找到一个在 Google 的 PageSpeed Insights 上得分 90 或以上的 Wordpress 网站。
Yes, this is possible, and there are some ways to do this.是的,这是可能的,并且有一些方法可以做到这一点。 -You have to dequeue unnecessary js and CSS files loading on the landing page.
- 您必须将登陆页面上加载的不必要的 js 和 CSS 文件出列。 -Use premium page cache plugins, and follow their instructions.
- 使用高级页面缓存插件,并按照他们的说明进行操作。
Dequeue CSS, JS -In your functions.php file use the hooks to dequeue files出列 CSS,JS - 在您的 functions.php 文件中,使用钩子将文件出列
/*Site optimizations*/
/*Site optimizations*/
function remove_unnecessary_assets() {
if (is_front_page()) { // only remove on the home page
// remove CSS
wp_dequeue_style('style-handler');
// remove JS
wp_dequeue_script('script-handler');
}
};
add_action( 'wp_enqueue_scripts', 'remove_unnecessary_assets', 999 );
After removing CSS, JSS make sure your site is working fine.删除 CSS 后,JSS 确保您的站点工作正常。
Then, use cache plugins: Wp Rocket OR Nitropack然后,使用缓存插件: Wp Rocket或Nitropack
Check Wp Rocket site on Google's PageSpeed在 Google 的 PageSpeed 上查看 Wp Rocket 网站
干净的 WordPress 安装将在 PageSpeed 中获得 99 分。
The easiest way to score 90+ for your Wordpress site is to deploy Nitropack.为您的 Wordpress 网站评分 90+ 的最简单方法是部署 Nitropack。
Our wordpress site is now scoring 99 desktop, 92 mobile.我们的 wordpress 网站现在桌面得分为 99,移动得分为 92。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.