Difference between require() and define() in RequireJS? [duplicate]
One core difference that annoyed me in early use was figuring out that a define might never be called. As long as there is only one define per file, it will register that module as available under that filename. However, define modules are only loaded once a require function asks for each of them. Define: … Read more