WARI scans your web application and examines dependencies between JavaScript functions, CSS styles, HTML tags and images. WARI-Web Application Resource Inspector seems the closest fit. There are several tools you should look at: When used in conjunction with a testing tool like Selenium, these should allow you to remove resources with confidence. In addition, the tools in my original response below can give a good picture of what JS/CSS/IMAGE resources are actually getting used when your site is loaded. Visual Studio has its own Regular Expression syntax, which is documented here) ("\" escapes the ".", and ">" means end of word, so that "foo.js" is found, but not "foo.jsx". "Use Regular Expressions", and set "Look in these file types" to "*.aspx *.ascx". js that are referenced in ASCX ir ASPX pages, go to Edit/Find and Replace/Find in Files, set the search expression to. jpg files using Visual Studio's search by regular expression feature, or by using a high-powered text editor like Notepad with a Regular Expression search feature.įor example, to use Visual Studio to search for all files ending in. That said, you can search for hard-coded references to. Clearly any tool that attempted to scan your source to find unreferenced files would miss these resources. It's easy to imagine a scenario in which the image name is loaded from an external data source, or concatenated from another field value plus ".jpg". This article shows how to load JavaScript and CSS dynamically, and it's a straightforward task in JavaScript to load an image dynamically. Update You will not find a tool that can systematically identify unused resources, because JavaScript, CSS, and image files can be loaded dynamically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |