added new yslow + custom rules

This commit is contained in:
Peter Hedenskog 2012-08-25 00:00:07 +02:00
parent 5135f92f61
commit a1eb1dc020
2 changed files with 10267 additions and 1 deletions

10266
dependencies/yslow-3.1.4-sitespeed.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -111,7 +111,7 @@ pagefilename=1
for i in "${result[@]}"
do
echo "Analyzing $i"
phantomjs dependencies/yslow-3.1.1.js -f xml "$i" >>"$REPORT_DATA_PAGES_DIR/$pagefilename.xml"
phantomjs dependencies/yslow-3.1.4-sitespeed.js -r sitespeed -f xml "$i" >>"$REPORT_DATA_PAGES_DIR/$pagefilename.xml"
# Sometimes the yslow script adds output before the xml tag, should probably be reported ...
sed '/<?xml/,$!d' $REPORT_DATA_PAGES_DIR/$pagefilename.xml >> $REPORT_DATA_PAGES_DIR/bup || exit 1
mv $REPORT_DATA_PAGES_DIR/bup $REPORT_DATA_PAGES_DIR/$pagefilename.xml