Remove Duplicate Scripts .
来源:互联网 发布:淘宝网店发货流程 编辑:程序博客网 时间:2024/06/05 14:46
It hurts performance to include the same JavaScript file twice in one page. This isn't as unusual as you might think. A review of the ten top U.S. web sites shows that two of them contain a duplicated script. Two main factors increase the odds of a script being duplicated in a single web page: team size and number of scripts. When it does happen, duplicate scripts hurt performance by creating unnecessary HTTP requests and wasted JavaScript execution.
Unnecessary HTTP requests happen in Internet Explorer, but not in Firefox. In Internet Explorer, if an external script is included twice and is not cacheable, it generates two HTTP requests during page loading. Even if the script is cacheable, extra HTTP requests occur when the user reloads the page.
In addition to generating wasteful HTTP requests, time is wasted evaluating the script multiple times. This redundant JavaScript execution happens in both Firefox and Internet Explorer, regardless of whether the script is cacheable.
Unnecessary HTTP requests happen in Internet Explorer, but not in Firefox. In Internet Explorer, if an external script is included twice and is not cacheable, it generates two HTTP requests during page loading. Even if the script is cacheable, extra HTTP requests occur when the user reloads the page.
In addition to generating wasteful HTTP requests, time is wasted evaluating the script multiple times. This redundant JavaScript execution happens in both Firefox and Internet Explorer, regardless of whether the script is cacheable.
- Remove Duplicate Scripts .
- Remove Duplicate
- Remove duplicate 问题
- leetcode Remove Duplicate Letters
- Remove Duplicate Letters
- Remove Duplicate Letters
- Remove Duplicate Letters
- Remove Duplicate Letters leetCode316
- leetcode: Remove Duplicate Letters
- Leetcode201: Remove Duplicate Letters
- LeetCode Remove Duplicate Letters
- 《leetCode》:Remove Duplicate Letters
- Leetcode: Remove Duplicate Letters
- leetcode--Remove Duplicate Letters
- [Leetcode]Remove Duplicate Letters
- Remove Duplicate Letters
- Remove Duplicate Letters
- 316. Remove Duplicate Letters
- DSP学习总结
- 指针&引用在C C++ JAVA 语言特性导致表达能力的差异
- 预处理指令作用
- Javascript调用后台方法
- python集锦(四)
- Remove Duplicate Scripts .
- Android给自定义控件添加自定义属性
- Asp.Net MVC 3.0【MVC项目实战の四】
- Minimize HTTP Requests
- Linux中运行的进程:ps/top
- sysfaces.exe-explorer应用程序错误
- Asp.Net MVC3.0【MVC项目实战の五】
- Use a Content Delivery Network .
- ifconfig详解