PHP Classes

File: html/load-page.js

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   Web Analyzer   html/load-page.js   Download  
File: html/load-page.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: 349 bytes
 

Contents

Class file image Download
var page = require('webpage').create(); var system = require('system'); var nowTime = Date.now(); page.open('http://localhost:5000/measure.html', function (status) { console.log(window.performance.timing.domComplete - window.performance.timing.domLoading); console.log('Loading time:' + (Date.now() - nowTime)); phantom.exit(); });