title: JS difference between enter page and refresh page
body: <p>Is it possible to detect situation when page is <strong>entered</strong> and when the same page is <strong>refreshed</strong></p>
  
  <pre><code>if (entered) alert("hi");
  if (refreshed) alert("you've refreshed");
  </code></pre>
  
  <p>Somehow there are some little differences between page rendering when entered and when refreshed and it would be much easier to detect the case than to debug it for me (if its even possible - maybe some browser optimization stuff is causing it).</p>