JRS: In article <
[email protected]>
, dated Wed, 16 Aug 2006 12:46:02 remote, seen in
news:comp.lang.javascript said:
I am new to javascript and intend to build a custom library.
Then you are probably trying to run before learning to walk.
After
saving independent files which contain separate functions, how does one
build the library?
With a text editor.
In languages such as Borland Pascal and Delphi, one can include any
amount of library code in a compilation, and only the needed parts will
be included in the final executable. Web Javascript lacks such a
capability, and, as it is repeatedly transmitted over links which may be
slow, a thoughtful page author will be careful to send only what may be
used to his readers.
Your basic library should therefore be like a public library; users take
and use only what they want. It should not be like the traditional
Encyclopaedia, for which if you want to own any particular article
legitimately you need to buy and store the whole work.
Web site authors should package the routines that will be repeatedly
used in a site within one or more "include files", generally according
to topic; and each page should only call for the include files that it
will use.
Remember, though, that include files should be cached locally to the
reader.
Read the newsgroup and its FAQ.