Page MenuHomePhabricator

Loader scripts should have access to server-side registration info
Closed, ResolvedPublic

Description

For modules with custom loader scripts, we don't emit any supplementary JS at all. For loader scripts to be of any use, they have to know the module's name (fair), its full list of dependencies including the ones defined server-side (very doable, but not nice if you have mostly static and few dynamic dependencies) and the last modified timestamp (pretty much impossible).

For this reason, at least the timestamp but preferably all of this information should be made available to the loader scripts. My suggestion for implementing this is ( function( name, deps, ts ) { loading script } )( 'foo', [], 1283295168 );


Version: 1.17.x
Severity: normal

Details

Reference
bz25085

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:13 PM
bzimport set Reference to bz25085.