Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

modified link in readme.markdown

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

0 notes on commit 9229092

Please sign in to comment.
Something went wrong with that request. Please try again.