Recent Answers

If you're using the JavaScript webpart to load your JavaScript/jQuery you need to be on the live site to view it. The webpart is disabled if not in the live site so it doesn't conflict with the jQuery library used for the CMSDesk editing functions.

At any rate the best place to do your test is on the live site view by clicking the link at the top right in v7 or opening the Application list and clicking the Live Site button down at the bottom in v8.

As I mentioned, it depends on how you're adding the JS files to the page. If you're using the webpart you will have to find an alternate solution. Doing what Dawid suggested will help if you aren't using the webpart but will have no effect if you are because as I stated the webpart doesn't load the JS files in anything other than live mode.

You could place a visibility macro in the enabled property of the javascript webpart. I have done this a couple of time and it seems to work well, although, usually I make it so it only works in the livesite viewmode.