Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h3>Update</h3> <p>This solution will not work for Chrome. It stops the loading indicator only when all requests made before window load have completed. The only solution appears to be to get it to make the request after window load, but as far as I know, this is only possible with setTimeout, which isn't great.</p> <hr> <h3>Update</h3> <p>To get around the pointer issue in Chrome, you could set the cursor style as shown in <a href="http://jsfiddle.net/7fDYE/19/" rel="nofollow">this fiddle</a>. It's a bit hacky and it doesn't address the issue of the loading indicator at the top of the tab.</p> <hr> <p>The loading indicator will be present in browsers until the page has loaded (window's load event). In <code>$(function(){someCode();});</code>, <code>someCode</code> is executed when the DOM load event is triggered (when all content has been parsed and inserted into the DOM, before page load). The execution of JavaScript at this point blocks the window's load event from firing, and so prevents the loading indicator from stopping. Note that image loading also blocks the window's load event.</p> <p>Instead, you could try <code>$(window).load(function(){someCode();});</code>. In this example, <code>someCode</code> is executed when the window's load event is triggered. This is at the point where the browser's loading indicator stops.</p> <p>So, instead of:</p> <pre><code>$(function(){ /*AJAX CODE HERE */ }); </code></pre> <p>Try:</p> <pre><code>$(window).load(function(){ /*AJAX CODE HERE */ }); </code></pre> <p>Note that this may cause your JavaScript to begin execution later, which may not be desirable.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload