I have an HTML like this:
<!-- simulate a slow-loading request -->
<script src="http://example.com:81/non-existent-script.js"></script>
<script>
$(document).ready(function() { alert("ready"); })
</script>
(see http://jsfiddle.net/mK63F/)
When I open the page in Chrome, the example.com
request should hang - but then, when I hit F5, the "ready" alert appears, before the page refreshes. Why does that happen? And how to distinguish that situation (i.e. refresh during page load) from "normal" page ready?