Open bendman opened 12 years ago
obviously this hook will need to go through the module handler, as this will generate the observer hooks for dependent modules, and remove the possibility accidentally loading the script more than once
maybe give require a method Require.fetch(filename);
I need to build a decent test case for extended functionality on a module over time, where the individual modules are loaded progressively by fetching just before the user can access the functionality based on user interaction.
Add a hook for preloading scripts immediately, without any callback. Use as a just-in-time loading mechanism, meant to be triggered by JS events.