merged branch 0.8-wip

This commit is contained in:
Peter Hedenskog 2012-08-26 01:55:43 +02:00
commit 2671cf7614
7 changed files with 10371 additions and 7 deletions

18
CHANGELOG Normal file
View File

@ -0,0 +1,18 @@
Sitespeed.io 0.8
------------------------
Sitespeed.io 0.7
------------------------
Enhancements:
* Upgraded to jquery 1.8
* Upgraded Twitter Bootstrap to 2.1
* Better title tag on result pages
Defects:
* Fixed so that long url:s don't break
* Sometimes output xml was broken
* Only fetch content of type html

View File

@ -1,7 +1,6 @@
<a href="http://sitespeed.io" target="_blank">Sitespeed.io</a> - how speedy is your site? [![Build Status](https://secure.travis-ci.org/soulgalore/sitespeed.io.png?branch=master)](http://travis-ci.org/soulgalore/sitespeed.io)
=============
Sitespeed.io is a tool that analyzes web sites and give you information of why they are slow and how you can optimize the web prformance. Today yslow rules are used in combination with other best practices.
What do sitespeed.io do?

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

File diff suppressed because it is too large Load Diff

BIN
report/img/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -34,7 +34,7 @@
}
</style>
<link rel="shortcut icon" href="img/favicon.png">
<link rel="shortcut icon" href="$!{pathToIncludes}img/favicon.png">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
@ -45,7 +45,7 @@
<div class="navbar-inner">
<div class="container">
<a class="brand" href="http://sitespeed.io" title="How speedy is your site?">sitespeed.io</a>
<a class="brand" href="#" title="How speedy is your site?">sitespeed.io</a>
<div class="nav-collapse">
<ul class="nav">
<li #if( $pageMenu == "summary" ) class="active" #end>

View File

@ -15,7 +15,7 @@
<div class="row">
<div class="span6">
<div class="alert alert-#scoreType($scoreAverage)">
Average Yslow score
Average Yslow/sitespeed score
<div class='large'>$scoreAverage</div>
</div>
@ -97,8 +97,8 @@
means that something is bad.
</p>
<ul>
<li> <b><a href="http://developer.yahoo.com/performance/rules.html/" target="_blank">Yslow</a>
standard rules</b>:
<li> <b><a href="http://sitespeed.io/rules/" target="_blank">Modified</a> Yslow
rules</b>:
Over 90 is good, between 80-90 is not so good, and below 80 is bad, really bad.
</li>
<li> <b>The number of requests</b>:

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