so that the upper part of the webpage can be displayed first, or the page would display only if all the web resources/elements are loaded?

thx & merry christmas !

1 answer

0
points

Your question is a little unclear. However, documents load from top to bottom. If you want to display certain elements in a certain manner you could do something like this (using jQuery):

$(window).load(function(){ // page has finished loading
  $("#upperpage").show( function() { // show the upper part of the page first

     $("#lowerpage").show(); // show this once the upper part of the page has been displayed.
  });
}

Be sure to set the divs to display:none;

Answered over 8 years ago by Trevor Landau