MCPcopy Create free account
hub / github.com/tdewolff/minify / afterLoad

Function afterLoad

_benchmarks/sample_ace.js:3693–3702  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3691 return;
3692
3693 var afterLoad = function() {
3694 require([moduleName], function(module) {
3695 exports._emit("load.module", {name: moduleName, module: module});
3696 var listeners = exports.$loading[moduleName];
3697 exports.$loading[moduleName] = null;
3698 listeners.forEach(function(onLoad) {
3699 onLoad && onLoad(module);
3700 });
3701 });
3702 };
3703
3704 if (!exports.get("packaged"))
3705 return afterLoad();

Callers 1

sample_ace.jsFile · 0.70

Calls 3

requireFunction · 0.70
onLoadFunction · 0.70
cbFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…