On your root page, which loads all the other pages when you create an array, or a list of variables that are flags on a particular jQuery page, is loaded or not.
Write a procedure to not display any of the jQuery CSS containers until they are loaded, and set the flags loaded in the array / variable to true, using the function on the root page to set the flags.
So, the root page has:
<script> $JQueryPage1Ready = false; $JQueryPage2Ready = false; $JQueryPage3Ready = false; // Your JQuery loaded pages have javascript within them to call this function function setJQueryPageToReady($PageNo) { switch ($PageNo) { case 1: $JQueryPage1Ready = true; break; case 2: $JQueryPage2Ready = true; break; case 3: $JQueryPage3Ready = true; break; } // Check all pages are loaded if ($JQueryPage1Ready && JQueryPage2Ready && JQueryPage3Ready) { $("JQueryPage1Container").show(1000); $("JQueryPage2Container").show(1000); $("JQueryPage3Container").show(1000); } } <script>
JQuery loaded page 1
<script> setJQueryPageToReady(1); <script>
JQuery loaded page 2
<script> setJQueryPageToReady(2); <script>
JQuery loaded page 3
<script> setJQueryPageToReady(3); <script>
There may be other ways, but this is what first appeared in my head.
source share