It has been around 10 years since I really coded (mainly Java/C++/C/csh/bsh/ksh on UNIX).
We generally made our code as transparent to the libraries used as possible [Hence: Java's class of error DEPRECATED, warning features will be removed so get working on it].
I notice all the code I see on javascript (and JavaFX) have hard coded libraries, i.e.:
- <script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
Meaning that different features/libraries may hard code links to different jQuery libraries. By building links or shortcuts within the relevant files this can be reduced to a more friendly, and smaller footprint web app:
- <script type="text/javascript" src="scripts/jquery.js"></script>
With the server/operating system selecting the correct libraries.
It also means that a common entry point could be built into the jQuery UI folder, could this be included in future releases, as I am currently editing the folders myself to build the links myself.
The aim of this is to aid migration of older code to new libraries, and simplifying the writing of the code itself.
For libraries:
- <script type="text/javascript" src="scripts/jquery-ui-1.7.2.custom.min.js"></script>
- <link rel="Stylesheet" type="text/css" href="style/jqueryui/ui-lightness/jquery-ui-1.7.2.custom.css" />
Will become a more readable, and updateable (YOU MUST TEST CAREFULLY WHEN CHANGING LIBRARIES):
- <script type="text/javascript" src="jquery.ui/scripts/jquery-ui.js"></script>
- <link rel="Stylesheet" type="text/css" href="jquery.ui/css/default/jquery-ui.css" />
This would need a link in the root for "jquery.ui" to link to the chosen jQuery UI folder, and link to the entrypoint "jquery-ui-1.7.2.custom.min.js". The purpose of the "default" folder is to allow a complete change of the presentation of the website by changing one link.