Had to fiddle a bit to minify inlined HTML and CSS resources inside an ES6 class - here is what I did.https://paul.kinlan.me/minifiying-a-custom-element-es6-class/ …
-
-
Replying to @Paul_Kinlan
I used to use https://www.npmjs.com/package/static-module … for stuff like this, which avoids regex. Not sure if there's a non-browserify version.
1 reply 0 retweets 2 likes -
Replying to @jaffathecake @Paul_Kinlan
Actually, my memory is bad, it doesn't depend on browserify.
1 reply 0 retweets 1 like -
Replying to @jaffathecake @Paul_Kinlan
It's so painful to see embedding HTML and CSS in JS. We need to avoid this (overall).
4 replies 10 retweets 26 likes -
Why? I don't get the difference between a react component with inline HTML/CSS and a web components
1 reply 0 retweets 0 likes -
Replying to @mlcdf @slightlylate and
(Serious question here, I'm genuinely interested)
1 reply 0 retweets 0 likes -
With HTML imports, the HTML & CSS can be parsed without executing JavaScript first.
2 replies 1 retweet 4 likes
In parallel even, with better resource discovery and memory properties to boot
-
-
Replying to @slightlylate @jaffathecake and
You also get granularity and yielding. Basically, you know how everyone's excited about Fiber because it yields more often? That, but native
2 replies 0 retweets 3 likes - 1 more reply
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.