Karthiga Karthiga - 1 year ago 84
CSS Question

Jquery allow cursor to progress before document.ready function

In my project i want the cursor to progress state before document ready function and after the entire page is rendered it need to change the cursor to default state.

(function($) {
$(document).ready(function() {
$('body').css('cursor','progress'); }

This my code can anyone please help me out

Answer Source

What you could do is something like this add a css rule for the body cursor

html {
  cursor: progress;

then just change the cursor again when page finish rendering all the contents.

$(window).on('load',function() {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download