title: jquery is not defined wordpress window load
body: <p>I am trying to load some jquery on window load however I recieve the error of 'jQuery is not defined'.</p>
  
  <p>Here is my jquery.</p>
  
  <pre><code>jquery(function($) { //jQuery passed in as first param, so you can use $ inside
  jquery(window).load(function ($) {
      $('#newsPost').masonry({
        columnWidth: '.col-lg-6',
        itemSelector: '.item'
      });      
  })
  });
  </code></pre>
  
  <p>I had it working fine with document ready however window load is coming up not defined. </p>
  
  <hr>
  
  <p>Here is an update showing the final working version:</p>
  
  <pre><code>jQuery(function($) { 
  $(window).load(function () {
  $('#newsPost').masonry({
    columnWidth: '.col-lg-6',
    itemSelector: '.item'
  });      
  })
  });
  </code></pre>