简体   繁体   English

Google Pagespeed“第三方使用”问题

[英]Google Pagespeed "Third-Party Usage" issue

I have optimized my website in every possible way, but when I am testing performance in google pagespeed tool it shows "Third-Party Usage 4 Third-Parties Found"我已经以各种可能的方式优化了我的网站,但是当我在 google pagespeed工具中测试性能时,它显示“第三方使用 4 第三方发现”

I have used defer / async loading external scripts and used preconnect also but this error is still showing.我使用了延迟/异步加载外部脚本并使用了预连接,但仍然显示此错误。

在此处输入图片说明

What should I do???我该怎么办???

Here are full details of the performance check:以下是性能检查的完整详细信息:

https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fzubizi.com%2Fgst-billing-software-for-retail-shop.html&tab=mobile https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fzubizi.com%2Fgst-billing-software-for-retail-shop.html&tab=mobile

For clarity this is not an error message - anything under the 'diagnostics' section is for your information to help you diagnose any outstanding performance issues.为清楚起见,这不是一条错误消息——“诊断”部分下的任何内容都供您参考,以帮助您诊断任何突出的性能问题。

It does NOT affect your score directly.它不会直接影响您的分数。

The only way to avoid this is to bundle the 4 items together into a single file and include them as a script served from your own server.避免这种情况的唯一方法是将 4 个项目捆绑到一个文件中,并将它们作为脚本包含在您自己的服务器上。

I do this with Google Analytics (so I can avoid Sub Resource Integrity errors in Mozilla Observatory) by downloading the file each night and caching it locally.我使用 Google Analytics(这样我可以避免 Mozilla Observatory 中的子资源完整性错误)通过每晚下载文件并将其缓存在本地来执行此操作。

I would not worry about it at all, your performance problems come from the other 460kb of JS you have in your concated.js file so if you want to improve performance, start by looking there to remove as many libraries as you can.我一点也不担心,您的性能问题来自 concated.js 文件中的其他 460kb JS,因此如果您想提高性能,请首先查看那里以删除尽可能多的库。

Also the CSS you have inlined to minimise critical request chains is gigantic, try optimising that to only include 'above the fold' CSS as that is all that is needed.此外,您为最小化关键请求链而内联的 CSS 是巨大的,请尝试优化它以仅包含“首屏”CSS,因为这就是所需要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM