As more UI interaction moves to client-side JavaScript in the future, we have some nice opportunities to enhance ResourceLoader to make it easier to deliver alternate versions of particular modules.
This would be hugely useful for Gadget authors, who could create experimental versions of their gadgets for testing.
For core & extension modules, we could send alternate versions to people who have opted-in to beta-testing or general A/B testing groups.
For cacheability, the actual load.php requests should still contain all the necessary information to disambiguate what's being loaded, so possibly we'd need to export available versions to the JS side, so the loader can pick the appropriate variant to request.
No super rush on this, it'll need to be considered. :)
Version: 1.18.x
Severity: enhancement