slider not running with $(window).load
<p>OK, new angle from previous question which I didn't explain properly <a href="http://stackoverflow.com/questions/13287735/jquery-slider-throwing-error-could-not-convert-javascript-argument-arg-0-ns">here</a>:</p>

<p>Our dev site has the slider working perfectly here:</p>

<p><a href="http://allblacks.01dev.co.nz/index.cfm?layout=dnaHome" rel="nofollow">http://allblacks.01dev.co.nz/index.cfm?layout=dnaHome</a></p>

<p>However, we've just put the site live and it's not working here:</p>

<p><a href="http://stackoverflow.com/questions/13287735/jquery-slider-throwing-error-could-not-convert-javascript-argument-arg-0-ns">http://www.allblacks.com/index.cfm?layout=dnaHome</a></p>

<p>I have isolated the problem to the following piece of code. The alert fires on the 01dev site, but not on the live site.</p>

<pre><code>$(window).load(function () {
            $('.wraplines a, .wraplines .wrapspan').wraplines().addClass('wrapped clearfix');
            alert('here');

            $('.carousel').each(function () {
                $(this).Waterfall({
                    autoStart: $(this).data('autostart'),
                    startAt: $(this).data('startat'),
                    infiniteScroll: $(this).data('infinitescroll'),
                    hasPager: $(this).data('haspager')
                });
            });
        });
</code></pre>

<p>Can someone help me understand this?</p>

<p>EDIT:
There's already a $(document).ready... earlier on, as below:</p>

<pre><code>(function ($) {
    "use strict";

    $(document).ready(function () {
        var html = $('html'),
            body = $('body'),
            header = $('.header'),
            searchTrigger = $('.search'),
            searchPane = $('.search-pane');

        html.removeClass('no-js');

        $(window).load(function () {
            $('.wraplines a, .wraplines .wrapspan').wraplines().addClass('wrapped clearfix');
            alert('here');

            $('.carousel').each(function () {

                $(this).Waterfall({
                    autoStart: $(this).data('autostart'),
                    startAt: $(this).data('startat'),
                    infiniteScroll: $(this).data('infinitescroll'),
                    hasPager: $(this).data('haspager')
                });
            });
        });
</code></pre>
