I inherited an old project with a lot of javascript files everywhere ... Is there a way to find which of these files is used inside the pages?
Thanks in advance.
You can check the logs in the past, say, one month, and find all the *.jsfiles requested by browsers. The journal may contain a referrer page that simplifies the process.
*.js
Something that I do very often for files .asp: find a good text editor that allows you to find text inside files / folders. Visual Studio.NET does an excellent job, but I tried and succeeded with Notepad ++. Find all files containing .js. If your text editor provides regular expression support for your searches (the above products), this makes things even better. The regular expression that I use in VS is equal to \.asp>(asp point followed by word boundary). Search results are often displayed in a window where you can copy everything and perform manual processing using additional regular expression operations or copy data to an excel file.
.asp
.js
\.asp>
Macromedia Dreamweaver , . Dreamweaver " ", " ". , js . "" Dreamweaver ( -/ ), . . , Dreamweaver . . foo.js bar.asp, bar.asp , Dreamweaver bar.asp , foo.js. Dreamweaver .
foo.js
bar.asp
, YSlow! http://developer.yahoo.com/yslow/
.
You can create a script in a general purpose language that runs through every html file in your project by checking script tags. Or you can just do it manually, which may or may not save your time depending on the size of your project.