Re: [css-houdini-drafts] [worklets] <script> tag import feature design.

This seems bad since it will run the code in the main page context if the browser doesn't support worklet="". To avoid that you'd need a new type (e.g. type="paintworklet" or similar).

I think it might also be better to use `<link>` for this, as it's linking to an external resource to be registered somewhere, not running script in the main document. That's what service worker did with `<link rel="serviceworker">`.

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

Received on Friday, 7 April 2017 03:33:35 UTC