Permalink
Browse files

modified link in readme.markdown

  • Loading branch information...
1 parent 817fe72 commit 92290926798dd787fb57ebec9f09078de637b4d0 @andyedinborough committed Apr 14, 2011
Showing with 3 additions and 2 deletions.
  1. +1 −1 readme.markdown
  2. +2 −1 stressTest.js
View
@@ -6,4 +6,4 @@ It indexes all the elements and their classes, and then--class by class--it
removes one, and times how long it takes to scroll the page. Classes that
save a considerable amount of time when removed indicate problem areas.
-To install the bookmarklet, visit my blog post on this project: http://andy.edinborough.org/CSS-Stress-Testing-and-Performance-Profiling
+To install the bookmarklet, visit my blog post on this project: <http://andy.edinborough.org/CSS-Stress-Testing-and-Performance-Profiling>
View
@@ -132,7 +132,7 @@ var stressTest = (function () {
window.scrollBy(0, n % 2 == 0 ? 100 : -100);
};
times *= 2; //each test consists of scrolling down, and then back up
-
+
bind(window, 'scroll.stressTest', function () {
total += (+new Date) - current;
n++;
@@ -165,6 +165,7 @@ var stressTest = (function () {
if (e.keyCode == 27) state.cancel = true;
});
+ window.scrollTo(0, 0); //the first test scrolls down
/* just warming up */
testClass(times, baselineName, state, function () {
testClass(times, baselineName, state, testfinish);

0 comments on commit 9229092

Please sign in to comment.