PHP Classes

File: performance-time.js

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   Web Analyzer   performance-time.js   Download  
File: performance-time.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Web Analyzer
Analyze contents of pages retrieved with a browser
Author: By
Last change:
Date: 1 year ago
Size: 411 bytes
 

Contents

Class file image Download
document.addEventListener("DOMContentLoaded", function () { // Put your code here ... var html = '<h1 id="performance-timing">' + performance.timing.domComplete + '</h1>'; appendHtml(document.body, html); }); function appendHtml(el, str) { var div = document.createElement('div'); div.innerHTML = str; while (div.children.length > 0) { el.appendChild(div.children[0]); } }