Doublons possibles:
Include javascript file inside javascript file?
How do you dynamically load a javascript file? (Think C's #include)Inclure un fichier JavaScript
Est-il possible d'inclure un fichier JavaScript à partir d'un fichier .js? Vous savez: comment je lier les fichiers .css en haut d'un fichier .css.
xxx.js contient:
Some sort of @import yyy.js
followed by other js commands.
Voir [Comment charger dynamiquement un fichier javascript? (Pensez #include C) ] (http://stackoverflow.com/questions/21294/how-do-you-dynamically-load-a-javascript-file-think-cs-include). –