Re: [css-houdini-drafts] import() setup is inefficient

So note how the module map <-> settings object association works. Each
 Document and WorkerGlobalScope *has* a module map. And each 
environment settings object has an *algorithM* for obtaining the 
module map. Then the environment settings object for windows looks up 
their associated Document's module map, and for WorkerGlobalScope just
 returns the WorkerGlobalScope's module map.

So how I would do this in spec land is to say that each Worklet *has* 
a module map, and have the algorithm for WorkletGlobalScope 
environment settings objects return the associated Worklet's module 
map. Then you can continue to use the existing fetch algorithms, but 
since they all consult the same module map, you'll get the memoization
 for free.

-- 
GitHub Notification of comment by domenic
Please view or discuss this issue at 
https://github.com/w3c/css-houdini-drafts/issues/229#issuecomment-228428417
 using your GitHub account

Received on Friday, 24 June 2016 18:46:03 UTC