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

phantomjs://code/yslow.js:5 in global code #205

Open
KennethNagin opened this issue Jan 27, 2019 · 1 comment
Open

phantomjs://code/yslow.js:5 in global code #205

KennethNagin opened this issue Jan 27, 2019 · 1 comment

Comments

@KennethNagin
Copy link

I'm new to yslow. I did the in windows install but getting an error when running your basic commands:
$ ./bin/phantomjs.exe yslow.js --info basic --format tap --threshold B http://yslow.org
TypeError: undefined is not an object (evaluating 'args.length')

phantomjs://code/yslow.js:5 in global code

I also did the linux install on ubuntu and got the same error message.
What am I missing

@avihayb
Copy link

avihayb commented May 26, 2020

I've encountered the same issue.
at the start of line 5:
var i,arg,page,urlCount,viewport,webpage=require("webpage"),args=phantom.args,len=args.length
change "args=phantom.args,len=args.length"
to "args=phantom.args;var len=args.length"

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