Skip to content

Commit

Permalink
Add another example to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Nov 10, 2015
1 parent e392938 commit 9ab596c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ psi('html5rocks.com').then(function (data) {
psi.output('html5rocks.com').then(function () {
console.log('done');
});

// Supply options to PSI and get back speed and usability scores
psi('html5rocks.com', { nokey: 'true', strategy: 'mobile' }).then(function (data) {
console.log('Speed score: ' + data.ruleGroups.SPEED.score);
console.log('Usability score: ' + data.ruleGroups.USABILITY.score);
});
```


Expand Down

0 comments on commit 9ab596c

Please sign in to comment.