Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show page after jQuery UI has finished updating widgets

It is annoying that you can see the bulk buttons before $(document).ready(... has finished buttonize them.

I have the options

  1. set all classes manually in the html <- much classes which could change in next version
  2. set body transparent or invisible until done

both options have disadvantages.

Do you have any suggestions?

like image 680
bitluni Avatar asked Oct 09 '22 20:10

bitluni


1 Answers

If you are only using html/java-script with jQuery then your options are limited to those languages. For instance if using a code behind language you could load the data for widgets before they are loaded on the client machine.

The easy method would be to hide the body.

 <body style="visibility:hidden">

then in

$(document).ready(function(){
$('Body').css('visibility','visible');
});
like image 89
Jpepper Avatar answered Oct 12 '22 10:10

Jpepper