首页> 外文期刊>Net >jQuery: shrink your JavaScript files
【24h】

jQuery: shrink your JavaScript files

机译:jQuery:缩小您的JavaScript文件

获取原文
获取原文并翻译 | 示例

摘要

Bandwidth and browser technology are improving to meet the demands of highly JavaScripted applications, but you still need to be concerned with the size of your JavaScript code. There are two main reasons why size is important. First, even if the JavaScript you serve is cached, it still needs to be evaluated by the browser on every request. While other loading actions, such as downloading assets, can be run in parallel, JavaScript evaluation can't. This means that the size of your JavaScript files will have a larger impact on page load time than the size of CSS files or images. Reducing the size of your JavaScript is the only way to reduce the amount of time the browser spends evaluating it.
机译:带宽和浏览器技术正在不断改进,以满足高度使用JavaScript的应用程序的需求,但是您仍然需要考虑JavaScript代码的大小。大小很重要的两个主要原因。首先,即使您提供的JavaScript已被缓存,浏览器在每次请求时仍需要对其进行评估。虽然其他加载操作(例如下载资产)可以并行运行,但JavaScript评估却不能。这意味着与CSS文件或图像的大小相比,JavaScript文件的大小对页面加载时间的影响更大。减少JavaScript的大小是减少浏览器评估它的时间的唯一方法。

著录项

  • 来源
    《Net》 |2010年第209期|p.82-85|共4页
  • 作者

    Matt Kelly;

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号