We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfe415a commit 36ad1f1Copy full SHA for 36ad1f1
1 file changed
README.md
@@ -33,6 +33,11 @@ waitForChunk(function(file) {
33
// var file = require("./file.js");
34
});
35
// wraps the require in a require.ensure block
36
+
37
+// Multiple callbacks can be added. They will be executed in the order of addition.
38
+waitForChunk(callbackTwo);
39
+waitForChunk(callbackThree);
40
+// If a callback is added after dependencies were loaded, it will be called immediately.
41
```
42
43
The file is requested when you require the bundle loader. If you want it to request it lazy, use:
0 commit comments