So I've logged onto a client's site this morning (it's an intranet that monitors vehicle usage etc). jQuery is a decent part of the site but all of a sudden it's failed with these console errors:
> jquery.js:1Uncaught SyntaxError:
> Unexpected token :
> www.mydomain.com:21Uncaught
> ReferenceError: jQuery is not defined
> www.mydomain.com:50Uncaught
> ReferenceError: $ is not defined
The only thing that I've changed in the past week is adding a charset and altering the doctype to:
header("Content-Type: text/html; charset=UTF-8"); ?>
I think this might be the problem but removing the header() and DOCTYPE doesn't fix the issue. Any ideas what could be going on?
Edit 1:
Chrome Inspector shows nothing has failed to load.
Edit 2: Head Section
Intranet Check out Firebug. Is jQuery still getting loaded? Also remove the line break between your PHP code and the doctype declaration