Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

97 lines (81 sloc) 2.92 kB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>SlickSpeed Selectors Test</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
<script src="config/frameworks.js" type="text/javascript"></script>
<script src="config/selectors.js" type="text/javascript"></script>
<script src="system/slickspeed.js" type="text/javascript"></script>
</head>
<body>
<div id="container">
<div id="controls">
<a class="stop" href="#">stop tests</a>
<a class="start" href="#">start tests</a>
</div>
<h1><span>SlickSpeed</span></h1>
<h2>Speed/validity selectors test for frameworks.</h2>
<p>Every framework runs in his own iFrame, thus no conflicts can happen. Tests are run selector by selector, with an interval to prevent the browser from freeezing.</p>
<p>Tests are run in a neutral environment, no library or framework is included in the main javascript test.</p>
<p>Under firefox, disable firebug for more accurate results, as most frameworks could throw warnings, slowing down the dom query process.</p>
<p>Tests are run against a local copy of <a href="template.html">this document</a>.</p>
<div id="frames"></div>
<script type="text/javascript">
SlickSpeed.buildFrames();
</script>
<table>
<thead id="thead">
<tr>
<th class="selectors-title">selectors</th>
<script type="text/javascript">
SlickSpeed.forEach(SlickSpeed.frameworks, function(f) {
document.write("<th class='framework'>" + f.name + "</th>");
});
</script>
</tr>
</thead>
<tbody id="tbody">
<script type="text/javascript">
SlickSpeed.forEach(SlickSpeed.selectors, function(s) {
document.write("<tr><th class='selector'>" + s + "</th>");
SlickSpeed.forEach(SlickSpeed.frameworks, function(f) {
document.write("<td class='empty'></td>");
});
document.write("</tr>");
});
</script>
</tbody>
<tfoot id="tfoot">
<tr>
<th class="score-title"><strong>final time (less is better)</strong></th>
<script type="text/javascript">
SlickSpeed.forEach(SlickSpeed.frameworks, function(f) {
document.write("<td class='score'>0</td>");
});
</script>
</tr>
</tfoot>
</table>
<h2>Legend</h2>
<table id="legend">
<tr>
<th>the faster</th>
<th>the slower</th>
<th>exception thrown or zero elements found</th>
<th>different returned elements</th>
</tr>
<tr>
<td class="good"></td>
<td class="bad"></td>
<td class="exception"></td>
<td class="mismatch"></td>
</tr>
</table>
</div>
<div id="footer">
<p class="footer">copyright &copy; 2009 <a href="http://mad4milk.net">Valerio Proietti</a> | MIT License | <a href="http://github.com/kamicane/slickspeed/">download from github</a></p>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.