 <p>You don't need a <code>doc ready</code> handler here: <a href="http://jsfiddle.net/RWnBQ/1/" rel="nofollow">http://jsfiddle.net/RWnBQ/1/</a></p> <pre><code>$(".readmore").each(function () { if ($(this).text().length &gt; 200) { //--- doc ready removed from here $('div.readmore').expander({ slicePoint: 200, expandSpeed: 1000, collapseSpeed: 1000, expandText: 'Read More', userCollapseText: 'Hide Text' }); //--- doc ready removed from here } }); </code></pre>