There aren't performance diference?


On 23 maio, 18:46, "Karl Rudd" <[EMAIL PROTECTED]> wrote:
> Yes. Put as many as needed.
>
> Karl Rudd
>
> On Sat, May 24, 2008 at 4:50 AM, Alexsandro_xpt <[EMAIL PROTECTED]> wrote:
>
> > I don't know about jQuery(document).ready(function(){}); performance.
>
> > But I wish to know somethings:
>
> > Can I put lot of jQuery(document).ready(function(){...............some
> > js codes........}); in some <script> tag instead just one
> > jQuery(document).ready?
>
> > Eg:
> > <script>
> > //eg with lot of DOM jquery ready finction, that are inject by PHP
> > Template compilation.
> > jQuery(document).ready(function(){...............some js
> > codes........});
> > jQuery(document).ready(function(){...............some js
> > codes........});
> > jQuery(document).ready(function(){...............some js
> > codes........});
> > jQuery(document).ready(function(){...............some js
> > codes........});
> > jQuery(document).ready(function(){...............some js
> > codes........});
> > </script>
>
> > V.s.
>
> > <script>
> > //eg with only DOM ready. know that is good pratics.
> > jQuery(document).ready(function(){
> > ...............some js codes........
> > ...............other js codes........
> > ...............another js codes........
> > ...............another js codes........
> > ...............another js codes........
> > ...............another js codes........
> > });
> > </script>
>
> > I quest a about that, becouse I write some PHP code, that scripts are
> > injected to HTML source on SMARTY compile time to work various jquery
> > plugin.
>
> > Thz.

Reply via email to