loader icon indicating copy to clipboard operation
loader copied to clipboard

Proposal: Hook registration with url-scopes/path patterns

Open matthewrobb opened this issue 11 years ago • 1 comments

The System loader may well be used to load a great many different things that are not simply JavaScript modules. It seems that in the spirit of The Extensible Web it would be best to describe what hooks get used in a way that is universal and can be extended by users at the lowest level. Ideally without HAVING to sub-class.

I would propose that something similar to what is being considered for ServiceWorkers => url-scopes/path-expressions be used in an api for registering hooks to handle loading. This would allow, for example, a translate hook be registered for "*.coffee" etc.

matthewrobb avatar Oct 02 '14 17:10 matthewrobb

we should solve https://github.com/whatwg/loader/issues/72 first, then we can get back to this use case.

caridy avatar Aug 21 '15 19:08 caridy