I have split my javascript in different files. I want to prevent, that javascript files are loaded twice. How can I do that?
You would need to manually track this and make sure. UweB's suggestion would also work.
You could also check out Require.js which could help you to organize your files.