Forum Moderators: open
Will the site still function and be usable even if the JavaScript content isn't visible?
Will the JavaScript content add so highly to the functionality that it can't easily be done away with or accomplished in another way?
If you are able to answer "yes" to at least one of the two questions -- go ahead and use it.