Testing load images 2013

Benchmark created on


Preparation HTML

<div id="load">
   <div class="newsletter">

   </div>
</div>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
F--
$('.newsletter').load('https://raw.github.com/danilowzn/teste/master/geral/', function() {
    var images = $('.newsletter img');
    var nImages = images.length;
    images.load(function() {
        --nImages;
        if(nImages == 0) {
            $('#load').html("");
            $('.newsletter').fadeIn();
        }
    });
});
ready
L--
$('.newsletter').load('https://raw.github.com/danilowzn/teste/master/geral/', function() {
    var images = $('.newsletter img');
    var nImages = images.length;
    images.load(function() {
        nImages--;
        if(nImages == 0) {
            $('#load').html("");
            $('.newsletter').fadeIn();
        }
    });
});
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.