Comparing version 0.5.0 to 0.5.1
@@ -14,3 +14,3 @@ const wd = require('wd'); | ||
.then(() => { | ||
if (opts.scroll) { | ||
if (opts.scroll || opts.reporter === 'fps') { | ||
return session.execute('function f () { window.scrollBy(0,5); window.requestAnimationFrame(f); } window.requestAnimationFrame(f);'); | ||
@@ -17,0 +17,0 @@ } |
{ | ||
"name": "timeliner", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Network Timeline Analyser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,2 +15,7 @@ # timeliner | ||
```shell | ||
# analyse scrolling performance on a long webpage | ||
$ timeliner http://buzzfeed.com --reporter fps --sleep 5000 | ||
``` | ||
### From code: | ||
@@ -48,3 +53,3 @@ | ||
if set, injects a script into the page which binds a vertical scroll to `window.requestAnimationFrame` making the page scroll continuously - Default `false` | ||
if set, injects a script into the page which binds a vertical scroll to `window.requestAnimationFrame` making the page scroll continuously, recommended if using `fps` reporter - Default `false` | ||
@@ -51,0 +56,0 @@ ### `sleep` |
10875
57