https://bugzilla.wikimedia.org/show_bug.cgi?id=25085

           Summary: Loader scripts should have access to server-side
                    registration info
           Product: MediaWiki
           Version: 1.17-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Resource Loader
        AssignedTo: tpars...@wikimedia.org
        ReportedBy: roan.katt...@gmail.com
                CC: roan.katt...@gmail.com, tpars...@wikimedia.org


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 );

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to