title: JS function fire only once on document load
body: <p>I'm trying to fire a normal JS function when the document loads, but only one time. It is not on a click or anything so I don't think JQuery's .one() works, I've tried but I may have missed something.</p>
  
  <pre><code>var fired = false;
  
  if(fired = false){
     $(document).ready(function(){
         fired = true;
         //code
     });
  }
  </code></pre>
  
  <p>This doesn't work. I have no idea why, It just doesn't.
  Anyone have ideas for this?</p>