public
Description: Profile calls to jQuery selectors.
Clone URL: git://github.com/osteele/jquery-profile.git
Search Repo:
jquery-profile / index.html
100644 50 lines (46 sloc) 1.978 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>jQuery Profile Plugin</title>
    <script type="text/javascript" src="jquery-1.2.1.min.js"></script>
    <script type="text/javascript" src="jquery.profile.js"></script>
    <script type="text/javascript" src="jquery.profile.js"></script>
<style type="text/css">
   #has-console {display: none}
   .has-console #has-console {display: block}
   .has-js #no-js {display: none}
 </style>
  </head>
  <body>
    <h1>jQuery Profile Plugin</h1>
    <p>jQuery.profile logs calls to <code>jQuery(selector)</code>.
    Visit the <a href="http://github.com/osteele/jquery-profile/wikis/home">documentation page</a> for additional information. Download it <a href="http://plugins.jquery.com/project/profile">here.</a></p>
    <div id="output">
      <div id="no-js">Enable JavaScript to use jQuery (d'oh!)</div>
      <div id="has-console">Look in your browser console for output, or click <a href="?inline-output">here</a> to direct console output to this area of the page.</div>
      <pre></pre>
    </div>
 
<script type="text/javascript">//<![CDATA[
$('#output').addClass('has-js');
if (window.console && !window.location.search.match(/[\?&]inline-output\b/))
  $('#output').addClass('has-console');
else
  window.console = {info: function(msg) { var div = document.createElement('div'); $(div).text(msg); $('#output pre').append(div) }};
 
$(function() {
  $.profile.start();
  for (var i = 0; i < 200; i++)
    $('script');
  for (var i = 0; i < 100; i++)
    $('#output');
  for (var i = 0; i < 100; i++)
    $('html body #output');
  for (var i = 0; i < 100; i++)
    $('script, #output');
  for (var i = 0; i < 100; i++)
    $('script, script, script, script');
  $.profile.done();
});
//]]></script>
  </body>
</html>