To count the DOM loading time in Javascript you can use the following snippet.
Sample Javascript
var dateBefore = new Date();
window.onload = function() {
document.getElementById("aDivId").innerHTML = (new Date()).getTime() - dateBefore.getTime();
}
RT @CodeSnippetsNET: Count the DOM loading time in #Javascript http://t.co/JPZejafcDi #js #php #html #jquery #css #coding
RT @CodeSnippetsNET: Count the DOM loading time in #Javascript http://t.co/JPZejafcDi #js #php #html #jquery #css #coding