有什么方法可以自动化 YSlow 吗?或者有 API 的替代方案?
有没有办法自动化 YSlow 或以编程方式使用它?我没有足够的知识来编写自己的 Firefox 扩展来利用 YSlow。
有一个类似的问题,但它已经存在一年多了,我想知道是否有什么新内容从此出来了。
www.webpagetest.org 看起来很有希望。我正在寻找更多替代方案。
Is there a way to automate YSlow or use it programmatically? I don't have enough knowledge to write my own Firefox extension to tap into YSlow.
There's a similar question but it's over a year old and I wanted to know if anything new came out since.
www.webpagetest.org looks promising. I am looking for more alternatives.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
尝试http://www.showslow.com/。你也可以从github下载并安装在你自己的服务器上。
Try http://www.showslow.com/. You can also download it from github and install it on your own server.
您可以尝试 Google 的 PageSpeed Insights API。
如何使用:
发出 GET 请求https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url={THE_URL_TO_CHECK}&key={YOUR_API_KEY}
You could try Google's PageSpeed Insights API.
How to use it :
https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url={THE_URL_TO_CHECK}&key={YOUR_API_KEY}
您可能想要的是 GTmetrix 服务。它非常棒而且免费。您无法自己对其进行编程,但它会自动为您监控您的网站,而这正是您所需要的。
实际的加载速度是危险且不可靠的。它们高度依赖于您的浏览器选择、网络活动、地理位置、本地内存使用等。您永远不应该使用加载速度来进行优化。仅针对 YSlow 和 Page Speed 分数进行优化。
What you probably want is the GTmetrix service. It's excellent and it's free. You can't program it yourself, but it'll monitor your sites for you automatically, and that's really all you need.
The actual loading speeds are treacherous and unreliable. They are highly dependent on your browser choice, network activity, geographical location, local memory use, etc. You should never use loading speeds for optimization. Optimize for YSlow and Page Speed scores only.
您可以使用YSlow for PhantomJS。
You could use YSlow for PhantomJS.