I'm looking for a way of increasing the performance of my code. Currently I do something similar to this:
$(".div1").load("Page.aspx #section1");
$(".div2").load("Page.aspx #section2");
However, this means I'm having to make 2 GET
requests. Is there any way of reducing this to 1 request by doing something like this:
var content = $.load("Page.aspx");
$(".div1").html(content("#section1"));
$(".div2").html(content("#section2"));
Cheers!