<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 8 年前。
我一直在构建一个非常注重图像和动画的网站。它在 Chrome 中运行良好,但在其他浏览器中有点不稳定。 只是想知道是否有人有任何想法可以在不影响艺术理念的情况下加快性能?
网址:http://www.benjaminbrooksguitar.com/guitarsite/
欢迎提出任何建议。
非常感谢 本
最佳答案
至少,您肯定希望将图像的大小调整为它们的查看大小。当图像以 36% 显示时,加载 1500 像素宽的图像毫无意义(在带有 text.png 的#title 元素的情况下)。您对其他图片也有类似的问题。
您的页面将加载得更快并且动画效果更好。
最后说明:我从未使用过航路点,但如果您继续看到动画性能问题,我会建议使用另一个库 Greensock GSAP,它被认为非常好(我已经使用过)。
关于jquery - 图像密集型站点性能问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26981352/