- From: Andriy Tyurnikov via GitHub <sysbot+gh@w3.org>
- Date: Sun, 02 Feb 2020 18:48:40 +0000
- To: public-houdini-archive@w3.org
andriytyurnikov has just created a new issue for https://github.com/w3c/css-houdini-drafts:
== [worklet] API of CSS.paintWorklet.addModule(url) produces network requests ==
Current API design forces extra network request for getting paintWorklets,
which might be suboptimal is a context of modern bundling and code splitting tools.
Assumption of low overhead of extra network requests doesn't seem viable in context of modern mobile-friendly web development practices.
Having API method somewhat like:
```
const workletClass = class {paint(ctx, geom, properties){}};
CSS.paintWorklet.registerModule({'name-for-registerPaint': workletClass })
```
May be a good option, maybe?
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/979 using your GitHub account
Received on Sunday, 2 February 2020 18:48:42 UTC