jQuery load to multiple divs
- by afcdesign
I have this code
$("body").on({
click: function(event){
event.preventDefault();
var aLink = $(this).attr("href");
$("#content").load(aLink+" #loader", function(){
//Callback here
});
$("#crumbbar").load(aLink+' .breadcrumbs', function(){
//Callback here
});
}
}, "a");
Can this be optimized in such a way that I only have 1 load command?