Rune Sandberg schrieb:
> In this regards I am looking for some tips on how to structure the 
> code when the codebase gets fairly large.
Write plugins!

You can structure your code into plugins and easily create a modular 
codebase that you can share at least in your company. You can the either 
compile the necessary modules into one file like mentioned by Jonathan 
or load them later via Christof's loader.
Some hints for structuring plugins can be found here 
http://jquery.com/docs/Plugins/Authoring/ and here 
http://jquery.bassistance.de/jquery-getting-started.html#plug

Using only one document.ready or more then one depends on your 
application: Are all modules heavily depending on each other? Use only 
one initializer. Are they more loosely coupled, and each runs without 
the other? Use several initializer and you can just remove one module 
without disturbing the others.

-- Jörn

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to