jquery cache?
JavaScript performance comparison
Preparation code
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<div id="head"></div>
<script>
Benchmark.prototype.setup = function() {
var $head = $('#head')
var css = { position: 'fixed' }
};
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
pure |
|
pending… |
cached |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments