You need to use ajax. This method allows you to specify what will happen on success. So once you will load first div's contents, in success handler load second div's contents and so on. Something like this:
<div id="div1"></div> <div id="div2"></div> <div id="div3"></div> $.ajax({ url: 'div1.html', type: "GET", dataType: "html", success: function (response) { $("#div1").html(response); $.ajax({ url: 'div2.html', type: "GET", dataType: "html", success: function (response) { $("#div2").html(response); $.ajax({ url: 'div3.html', type: "GET", dataType: "html", success: function (response) { $("#div3").html(response); } }); } }); } });
But remember - it will not work with local files - you need to set up some web server, as at least Chrome doesn't want to load local resources via ajax. Of course there is a way to change Chrome options but I wouldn't play with it.