marcelduran / yslow

YSlow analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages.
yslow.org
BSD 3-Clause "New" or "Revised" License
2.21k stars 384 forks source link

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

Open KennethNagin opened 5 years ago

KennethNagin commented 5 years ago

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 commented 4 years ago

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"