Elgg/Elgg — comment on commit 1b179e3dd38c98959dd95ee42af14d1a32ab2481
File:  line 0
By brettp:

Right now we have to ways to do this: via PHP with elgg_load_js() or via JS with elgg.require(). This is sorta going back to the complexity that is maintaining parallel dependency systems which we touched on in a trac ticket (can't find which right now). In this specific case, I think elgg.requires() is probably a good solution, but ideally we'd have something that would make these two systems easier to maintain.