/    Sign up×
Community /Pin to ProfileBookmark

Javascript functions validator?

Hi,

Is there a tool for validating my whole javascript code, spread in several files? I would like to automatically remove variables, loops, and functions that are not used, that are merey leftovers from previous versions.

Thanks

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Thomas-authorJul 25.2007 — No tools for this? I actually found a tool by Software Verification. It will go through your website and check for unused code. I have a hard time getting it to work though, and it isn't free. Surely there must be alternatives... ?
Copy linkTweet thisAlerts:
@felgallJul 25.2007 — Well most programmers now put ALL the JavaScript in one file and just link that into the head of each page that needs it. If they do link several files in then each provides separate functionality and can therefore be considered separate from any other file. The days of scattering JavaScript inside the HTML is past. A program such as you are looking for is therefore unnecessary for properly coded JavaScript.
Copy linkTweet thisAlerts:
@Thomas-authorJul 25.2007 — felgall, your points are valid and I have decided to merge my files into one or a few. However, the problem is still the same. How can I spot unused functions, loops, etc. in my webpage?
×

Success!

Help @Thomas- spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...