简体   繁体   English

是否有任何 Wordpress 网站在 Google 的 PageSpeed Insights 上得分超过 90?

[英]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 RocketNitropack

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.

相关问题 Google PageSpeed见解 - Google PageSpeed Insights google pageSpeed Insights,javascript IS折叠在WORDPRESS下方 - google pageSpeed Insights, javascript IS loaded below the fold WORDPRESS Google PageSpeed Insights API 集成 - Google PageSpeed Insights API integration Wordpress 安装的 Pagespeed Insights 中未捕获的错误 - Uncaught error in Pagespeed Insights on Wordpress installation 如何提高从Google PageSpeed Insights获得低分的WordPress WooCommerce网站的性能? - How can I improve the performance of a WordPress WooCommerce website that gets a low speed score from Google PageSpeed Insights? Google PageSpeed Insights API 无法连接到我的 Wordpress 博客来测试速度 - Google PageSpeed Insights API can't connect to my Wordpress blog to test speed PageSpeed Insights如何处理WordPress中的js.cookie.min? - PageSpeed Insights what to do with js.cookie.min in WordPress? WordPress:PageSpeed Insights中的“通过有效的缓存策略为静态资产提供服务” - WordPress: “Serve static assets with an efficient cache policy” in PageSpeed Insights 我可以在两个域上拥有两个完全相同的网站,理想情况下是从同一Wordpress运行吗? - Can I have two identical websites over two domains, ideally running from same Wordpress? 利用浏览器缓存(PageSpeed Insights) - Leverage browser caching (PageSpeed Insights)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM