Last modified: 2010-09-13 23:42:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27085, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25085 - Loader scripts should have access to server-side registration info
Loader scripts should have access to server-side registration info
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: ---
Assigned To: Trevor Parscal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-09-06 20:33 UTC by Roan Kattouw
Modified: 2010-09-13 23:42 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Roan Kattouw 2010-09-06 20:33:38 UTC
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 );
Comment 1 Trevor Parscal 2010-09-13 23:42:02 UTC
Resolved in r72941 and 72942

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links