Last change
on this file since 31525 was 31525, checked in by ak19, 7 years ago |
Nathan provided more stuff: Themes folder contains Sencha's Themebuilder which generates GXT Themes. It includes the .theme and generated .jar files for the project theme.
|
File size:
660 bytes
|
Line | |
---|
1 | var page = require('webpage').create(),
|
---|
2 | system = require('system'),
|
---|
3 | t, address;
|
---|
4 |
|
---|
5 | if (system.args.length === 1) {
|
---|
6 | console.log('Usage: loadspeed.js <some URL>');
|
---|
7 | phantom.exit(1);
|
---|
8 | } else {
|
---|
9 | t = Date.now();
|
---|
10 | address = system.args[1];
|
---|
11 | page.open(address, function (status) {
|
---|
12 | if (status !== 'success') {
|
---|
13 | console.log('FAIL to load the address');
|
---|
14 | } else {
|
---|
15 | t = Date.now() - t;
|
---|
16 | console.log('Page title is ' + page.evaluate(function () {
|
---|
17 | return document.title;
|
---|
18 | }));
|
---|
19 | console.log('Loading time ' + t + ' msec');
|
---|
20 | }
|
---|
21 | phantom.exit();
|
---|
22 | });
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.