As with other pages, the date of the page is independent of the dates of the include files shown.
Where code is common to more than one Web page, it is effective to put it into one or more "include" files, so that only one copy needs to be maintained and transmitted.
With an invocation such as
Often, the include statements will be placed at or near the top of a Web page, in the HEAD or BODY section.
Extension .js is commonly used, but has the disadvantage when used in the URL of a link that the file may then be treated as a Windows executable.
If a required include file is missing, code needing it will fail, perhaps confusingly. After invoking, I test by code like :-
In fact, I check variables defined at each end of the file, since it is possible for a file to be only partially up/down-loaded.
I have read that adding defer="defer" in the script tag allows page parsing to continue, since the included file code does not invoke any writes.
Code to select an include file can be written into a page while it is loading, but the contents must not be used until the file has loaded - or so it seems.
More elegantly, see Bart Van der Donck in news:c.l.j 2008-03-25.
A test variable is declared in inc-test.js.
Other include files are specific to my Rounding, Zeller, and other Easter pages.
The include files may also define a few variables.
My code can be used as code (where the boxes do not suffice, try View Source, in the page or on a browser menu), but should not be re-published.
Microsoft Internet Explorer (4-7, +?) and Google Chrome display functions and methods as written, in the original layout and complete with comment. If your browser does not (e.g. Firefox, Opera, Safari), you should resort to View Source or an independent viewer.
Read "Function Display on This Site" in Index and Introduction, and page Code Boxes. For the coding of the double-bordered boxes, see ShoFFF() etc. under "Function Display" in the inc-cmmn.js section of this page.
Simple Functions are shown in full. Added Methods may be shown as function anonymous with their names following in comment.
Some supplementary Methods may be conditionally defined; if you already have them, [native code] will be shown.
Functions Caption. contain identifying comment, and are functions merely in order that the comment can be shown.
Some routines, particularly date ones, have limited range :-
I no longer use this include file or these functions elsewhere.
Date mouseover popup.
For The Calendrical Works of Rektor Chr. Zeller : The Day-of-Week and Easter and associated pages.