Wait, hold up. Are you saying, w/ raw wc, I can do <div> <my-widget fn="obj.fn"> where obj is an object somewhere, with a fn method on it?
To get chunkable WC instantiation, you make your "upgrades" two-phase where you move most work to another method and have "thin" ctors.
-
-
...the thin ctors then register with something that does chunking (if you want). Easy to make this a mixin.
-
The insight here is that creating thousands of JS/DOM objects isn't slow; side-effect work of template/config-reaction can be.
- 14 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.