PSA: embedding/applying CSS in JS is the surefire way to be on every slow path. Bloats memory, slows parsing & use, hurts caching. Avoid.
-
-
It doesn't blow memory more than ordinary js
-
It blows a lot more memory than ordinary CSS. And yes, if it's strings in JS that you then assign to DOM, it's different to "regular" JS
- 5 more replies
New conversation -
-
-
AFAIK this is only way to kick off CSS parsing during document parsing, right?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
wait, cssinjs is normal js
Thanks. 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.