tags:

views:

38

answers:

1

is it appropriate to combine all functions that wouldn't conflict into one

$(document).ready(function) {
});

or

$(function() {
});

call to save a couple lines?

+3  A: 

To jQuery, it makes no difference whether to use one big .ready() handler, or call it several times. Internally, they all got merged together anyway or will get fired instantly when the DOM is ready already.

In my opinion, it's not a good practice to have more than one .ready() handler. Its like asking for confusion.

jAndy
good to know. Thanks!
Jeff V