title: Why does Firefox 5 ignore document.ready?
body: <p>Why does Firefox 5.0.1 not refresh this page when the back button is pressed?</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;meta http-equiv="cache-control" content="no-cache"&gt;
    &lt;script src="http://code.jquery.com/jquery-1.6.2.min.js" type="text/javascript"&gt;&lt;/script&gt;   
    &lt;script&gt;
    $(document).ready(function() { alert('ready'); });
    $(window).load(function() { alert('load'); });
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;form action="http://www.google.com" method="get"&gt;
    &lt;input name="q" type="text"&gt; 
    &lt;input type="submit"&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Steps to reproduce:</p>
  
  <ol>
  <li>Click "Submit Button"</li>
  <li>Press Back</li>
  <li>Neither document.ready or window.load fires</li>
  </ol>
  
  <p><b>Update:</b></p>
  
  <p>This will to force firefox to reload the page:</p>
  
  <pre><code>$(window).unload(function() {});
  </code></pre>
  
  <p>But, I ended up using this:</p>
  
  <pre><code>window.addEventListener('pageshow', function() {alert('pageshow'); }, false);
  </code></pre>