Modernizr.load is not a function

I’m finding that I need to write some javascript to do media queries and find that the Modernizr library, which is included in core, is available to intelligently let me check the user’s window size, etc. Usually when I try to learn a new library, I go to the browser console after reading some docs but find I cannot do so.

Modernizr.load is not a function

nor

Modernizr.mq() is not a function. I see the library loaded in the Resources of the browser and find Modernizr inside but I cannot instantiate it in console to work out what I can do. I do this with jQuery all the time, so what am I doing wrong? thx, sam

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/3/feed