内存受限设备上的脚本串联性能特征
我们目前正在尝试优化内存和 CPU 受限的 Windows 移动设备(MC9090、624MHz CPU、64meg RAM,运行 WinMo 6 和 Opera Mobile 9.5)上的页面加载时间。作为潜在的优化之一,我想组合外部 js/css 文件,但现在我们观察到页面加载时间在串联后实际上增加了。
现在,这与我所看到和读到的有关客户端性能的所有内容背道而驰。有人见过这个吗?另外,嵌入式设备 Web 优化与桌面浏览器有不同的规则吗?
We are currently trying to optimize page load times on an memory and cpu constrained windows mobile device (the MC9090, 624mhz cpu, 64meg ram, running WinMo 6 and Opera Mobile 9.5). As one of the potential optimiztions, I wanted to combine external js/css files, but now we are observing that page load times actually INCREASE after concatenation.
Now, that flies in the face of everything I have seen and read about with regards to client side performance. Has anyone ever seen this before? Also, are there different rules for embedded device web optimization then desktop browsers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
浏览器可以通过多个连接下载(4 个,有时 6 个 - 不确定这个版本的 Opera 允许什么)。通过将所有内容放入一个文件中,它会强制浏览器将所有 JavaScript 下载到一个流中,而不是多个流中。这可能会减慢速度。
图像和其他项目也会争夺这些连接。你需要一个类似于 Firebug 的“net”选项卡的工具来查看流量并了解带宽资源是如何分配的。
另请参阅:http://loadimpact.com/pageanalyzer.php
已过时但相关:http://www.stevesouders.com/blog/2008/03/20/roundup-on-parallel-connections/
Browsers can download across multiple connections (4, sometimes 6 - not sure what this version of Opera allows). By putting everything in one file it forces the browser to download all the javascript in one stream, vs. multiple ones. This could be slowing it down.
Images and other items also compete for these connections. You nelly need a tool similar to Firebug's "net" tab to view the traffic and see how the bandwidth resources are allocated.
Also, see: http://loadimpact.com/pageanalyzer.php
out of date but relevant: http://www.stevesouders.com/blog/2008/03/20/roundup-on-parallel-connections/