Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threshold option broken? #48

Closed
stefanjudis opened this issue Feb 8, 2015 · 2 comments
Closed

Threshold option broken? #48

stefanjudis opened this issue Feb 8, 2015 · 2 comments

Comments

@stefanjudis
Copy link

Hey hey,

I just wanted to play around with the --threshold option, but unfortunately it is not working.

I'm running

> psi www.smashingmagazine.com --threshold=99                                               [9:50:44]

--------------------------------------------------------

URL:       smashingmagazine.com
Strategy:  mobile
Score:     98

CSS size                                   | 559.91 kB
HTML size                                  | 65.81 kB
Image size                                 | 385.25 kB
JavaScript size                            | 161.88 kB
CSS resources                              | 3
Hosts                                      | 8
JS resources                               | 8
Resources                                  | 55
Static resources                           | 32
Total size                                 | 8.07 kB

Leverage browser caching                   | 0.75
Optimize images                            | 0.28

--------------------------------------------------------

I already a had look into the code, and there is no special treatment for threshold inside of psi and also the docs about the API doesn't say anything about threshold handling?

https://developers.google.com/speed/docs/insights/v1/getting_started#examples

Do I miss something?

@stefanjudis stefanjudis changed the title Threshold option broken Threshold option broken? Feb 8, 2015
@sindresorhus
Copy link
Contributor

Oops, I seem to have forgotten to handle that case in the recent rewrite. Fixed in 1.0.5.

npm i -g psi

@stefanjudis
Copy link
Author

Ha - thanks. I just wanted to propose the same PR. :)

But anyway - thanks for super quick response. :bowtie:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants