I am working with foundation 5 but I don't think this is specific to just foundation as it's more of a javascript question.
In the head of my document I load a .js file modernizr.js
then at the bottom of the body of my file I am trying to use the javascript .load() function like this
<script type="text/javascript">
Modernizr.load(function(){
console.log('hello world');
});
</script>
this is causing an 'Uncaught TypeError: undefined is not a function'
I am not really sure what's going on. The page still loads and the log message comes up as expected but I don't want to just move on with uncaught exceptions in my code.
What's the issue with this function and how can I overcome this obstacle?

Modernizr.load()is for loading OTHER resources AFTER Modernizr itself is already loaded. Doc here: modernizr.com/docs/#load.load()line? Usually, you specify some resource to load.Modernizr, notModernizer. When that is corrected, it looks like you don't have the.load()method in your build.