i am trying to insert a chuck of html into a div. i want to see if plain javascript way is faster than using jquery. unfortunately, i forgot how to do it the 'old' way :P
var test2 = function(){
var cb = function(html){
var t1 = document.getElementById("test2");
var d = document.createElement("div");
d.id ="oiio"
d.innerHtml = html;
t1.appendChild(d);
console.timeEnd("load data with javascript")
}
console.time("load data with javascript");
$.get("test1.html", cb);
}
what am i doing wrong here guys? also, there is a live test of this here: http://programmingdrunk.com/playground/