The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Getting three scripts to work on one page. possible?? Re: Getting three scripts to work on one page. possible??


Are you familiar with Chrome’s Developer Tools? Or Firebug? I think these would help you a lot. Your jQuery scripts broke because jQuery isn’t defined. You’re loading your scripts in the wrong order. You have to load jQuery before you load any of the plugins it depends on. If you’re calling jQuery functions in the body of your page, make sure jQuery is loaded before you call those functions. Move

to the top of the page, or move all your other script calls after your jQuery call. Also check out [this snippet]( “This Snippet”) for a really good idea to make sure your page doesn’t break if your CDN fails. If your’re concerned about page load speed, you could also load your scripts asynchronously via something like Yepnope (included with modernizr), but I don’t really think that’s necessary at this stage.