Just a sense for what's coming for web development this year: Shadow DOM is CSS Modules Done Right (TM). Going to disrupt tooling bigtime.
-
-
Replying to @slightlylate
If your framework carries around a runtime solution to CSS scoping, it's about to be bloat. Same for DOM traversal w/ components
4 replies 2 retweets 15 likes -
Replying to @slightlylate
And this isn't little. It's what component systems in JS frameworks *do*. They insulate you from the flattened tree. About to be native
3 replies 0 retweets 10 likes -
Replying to @slightlylate
Think about it this way: know how CSS feels great when you're using it with ~20 elements? What if you only ever styled 20 at once? That's SD
1 reply 1 retweet 10 likes -
Replying to @slightlylate
I want to believe. Would much rather use the Shadow DOM API. Admittedly, I am concerned about progressive enhancement, though.
2 replies 0 retweets 0 likes -
Replying to @kevinSuttle @slightlylate
Shadow DOM has lost a lot of it's attraction for those of us that live in the virtual DOM.
1 reply 0 retweets 0 likes -
Replying to @woodjoe
: Not sure why that should be true, but if your thing is interactive quickly, more power to you! (it's probably not)
1 reply 0 retweets 0 likes -
Replying to @slightlylate @kevinSuttle
bc my components aren't in HTML. JS based components are better because it's easier to express complex props.
1 reply 0 retweets 0 likes -
Replying to @woodjoe
: then your thing is likely very slow. Slow is bad. ¯\_(ツ)_/¯
1 reply 0 retweets 0 likes
: happy to trace (or analyse a trace of yours) though.
-
-
Replying to @slightlylate @kevinSuttle
I'm personally more eager to see proposed features like DOMChangeList and lazy DOM like updates.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.