I've found a similar answer jQuery load multiple html files in one element but I'm looking a solution with a callback once everything's is loaded. It doesn't have to be jQuery, can be another js library.
$.get("file.htm", '', function (data) { $("#result").append(data); });
$.get("pippo.htm", '', function (data) { $("#result").append(data); });