# jQuery liScroller doesn't use $(document).ready(function() why?

**URL:** <https://forum.kirupa.com/t/jquery-liscroller-doesnt-use-document-ready-function-why/261754>\
**Category:** Uncategorized\
**Created:** [May 30, 2008, 2:04pm UTC](https://forum.kirupa.com/t/jquery-liscroller-doesnt-use-document-ready-function-why/261754 "2008-05-30T14:04:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Post date:** [May 30, 2008, 2:04pm UTC](https://forum.kirupa.com/t/jquery-liscroller-doesnt-use-document-ready-function-why/261754/1 "2008-05-30T14:04:32Z")

</div>

I was wanting to implement this right to left CNN style newsticker

[http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html](http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html)

Unlike most jQuery functions this one does not begin with $(document).ready(function()  
});

liScroller function

```auto
$(function(){ 
    $("ul#ticker01").liScroll(); 
}); 

```

Assuming the creator of this tute and plugin knows alot more about jQuery than I do, I wanted to know is there a reason why not? Because my newsticker widget will ultimately be deployed via being inserted with a 3rd party include on a page that has other scripts that will load first, I already know from experience that the absense of $(document).ready(function() will cause an error in IE simply because the function attempts to use jQuery.js before it is fully loaded.
