无法找到为什么某些小图像需要 10 秒才能加载
我正在尝试优化我的网站,以在 YSlow 和 PageSpeed 上达到至少 90 分。 我做得很好。但在下面的结果中,有 4 张图像显示加载时间为 9-10 秒。如果你看细节,它实际上表明,在这 10 秒中,大多数 99% 都是在仅连接时。
这是一个 magento 商店,我不知道应该做什么来解决这个问题,因为图像不是很大。 http://gtmetrix.com/reports/www.theprinterdepo.com/FyZjLbUX
谢谢
I am trying to optimize my site to accomplish at least 90 on YSlow and PageSpeed.
I am doing pretty well. But in the following result, there are 4 images that show that take 9-10 seconds to load. If you see the detail, it actually shows that of those 10 seconds, mostluy 99% is while connecting only.
This is a magento store, and I am not sure what I should do to fix this problem because the images are not really big.
http://gtmetrix.com/reports/www.theprinterdepo.com/FyZjLbUX
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有趣的是,即使 WebPageTest.org 也显示了相同的问题,但没有什么明显的为什么会发生这种情况(至少对我来说),但我可以做出一些猜测:
我建议尝试将它们转换为 Base64 数据 URI 并更新 CSS,看看是否可以提高性能。 请参阅本文了解更多信息。
Interesting, even WebPageTest.org shows the same issues, but there's nothing obvious as to why this occuring (at least to me), but I can make some guesses:
I'd suggest trialling converting them to Base64 Data URIs and updating the CSS to see if that improves the performance. See this article for more.
为什么不只使用一个图像精灵,而不是使用小图像呢?它会快得多(http://www.w3schools.com/css/css_image_sprites.asp),您只需要向客户端发送一张图像
instead of having small images why don't you have only one image sprite? It will be much faster (http://www.w3schools.com/css/css_image_sprites.asp) and you will only need to send to the client one image