I have a page with 4 columns, each of which is called by jQuery Ajax. Each is also an accordion.
I want to hide everything (maybe behind a full page "loading" screen) until everything is drawn and especially the functionality of the accordions is done so the page does not appear a mess.
I tried adding
$('body').css('display', 'none');
before the calls and then
$('body').css('display', 'block');
after but it did nothing.
Code:
$(document).ready(function() {
$('body').css('visibility', 'hide');
$("#boards").load("boards.php?id=<?php echo $id; ?>");
$("#components").load("components.php");
$("#activities").load("activities.php");
$("#tasks").load("tasks.php");
$('body').css('visibility', 'show');
});