[英]Tool to identify which external javascript references are actually being used on a page
I'm working on a website that currently has the same block of external JavaScript references on each page (added via a master page). 我正在一个网站上工作,当前每个页面上都有相同的外部JavaScript引用块(通过母版页添加)。 I'd like to go through the site and identify which script files are actually necessary for each specific page to improve performance.
我想浏览该站点,并确定每个特定页面实际上需要哪些脚本文件以提高性能。 Problem is there are a lot of pages and I'm not sure how to do it without resorting to manual trial and error process.
问题是页面很多,我不确定在不依靠手动试错过程的情况下怎么做。
Is there a Firefox plug-in or some other tool that will identify which JavaScript references could actually be called by the page and which are not necessary? 是否有Firefox插件或其他工具可以识别页面实际可以调用哪些JavaScript引用,以及哪些不是必需的?
您可以使用firebug及其插件进行javascript代码覆盖: http : //getfirebug.com/extensions/index.html#firebugcodecoverage
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.