I am new to RequireJS and maybe this is an already discussed issue but I could not find a clear answer or opinion about this.
I have an application working with RequireJS. It has a lot of JavaScript files loaded by Require as they are needed. Working as expected.
Looking to Fiddler inspector I could see that all the files were loaded when the application started. I believe that Require has made a deep traversal of all the references to JavaScript files and loaded them all in the beginning.
If this is the way it works I believe that it would be better to generate a single file, minify it, and load it using a <script>
html tag.
If I generate one single file with all scripts, and pre-load them with <script>
will RequireJS load them again?
Am I doing something wrong?
In a production environment what could be the better solution?
Thanks in advance.