Ryan
Ryan

Reputation: 1885

External javascript file not working

I have some javascript that's loading just perfectly at the bottom of my site. I wanted to externalize this aforementioned js, so I'm now linking to the code externally, but now the code breaks and is pointing to an error (not within the js file but the jquery file). What changes when the js is externalized? Are variables retrieved in the same way?

Thanks

Upvotes: 0

Views: 1324

Answers (2)

kobe
kobe

Reputation: 15835

you can probably use firebug and see whats happening there. there is net panel which shows whethere that particular js is downloaded propery or not. after that you can see the errors on the console window of firebug to find what exactly is the error.

Upvotes: 0

SLaks
SLaks

Reputation: 887453

You probably added the <script> tags in the wrong order.

Upvotes: 2

Related Questions