简体   繁体   English

识别页面上实际使用了哪些外部javascript引用的工具

[英]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.

相关问题 哪些javascript文件未在页面加载时使用 - which javascript files are NOT being used on page load 如何识别正在使用哪个元素滚动? - How to identify which element scroll is being used? 需要使用 javascript 识别使用哪个文本框 - Need to identify which textbox is used using javascript jQuery / Javascript:如何删除当前页面未使用的页面的JS文件 - Jquery/Javascript: How to Remove JS file for a page which is not being used in current page TestCafe 为未在测试中使用的页面元素抛出引用错误 - TestCafe throws an References error for a page element that is not being used in tests 如何识别网页中正在使用的JQuery版本 - How to identify JQuery version being used in a web page 使用Java工具确定JavaScript在页面上加载哪些外部资源 - Determining what external resources JavaScript loads on a page with a Java tool 在 HTMX 中使用多个自定义事件作为触发器,我可以识别正在使用的触发器吗? - Using multiple custom event as triggers in HTMX, can I identify which of the triggers is being used? 用于标识框架组件的Application中的覆盖的工具 - Tool which identify override in Application for a framework component 如何从JavaScript文件检查正在使用哪个HTML? - How to check which HTML is being used from JavaScript file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM