For some reason, my browser (both Firefox and Chromium) won’t execute the scripts on this page: savageworkouts.com. Yet there are no errors reported in the console whatsoever. Any idea why?
EDIT: Some nice answers below pointed out that some scripts weren’t firing due to having src="" attributes.
EDIT: I discovered that scripts are being executed but it chokes when it gets to modernizr.foundation.js at the bottom of the page. Any idea why modernizr.foundation.js can’t be executed yet there are no errors being reported inside Inspector’s console?
EDIT: Solved: I was missing the closing tag for a div on the page (#contentContainer). What’s interesting is that missing the closing tag caused Chromium and Firefox both not to be able to continue past executing modernizr.foundation.js.
Why the F won’t it fire? I’ll tell you why. You’ve added an
srcattribute. Now the browser is trying to load a nonexistant script from anundefinedURL that refers to the current page.<script src="url.js">doStuff()</script>will always loadurl.jsand execute it, but will not executedoStuff().