PSA: embedding/applying CSS in JS is the surefire way to be on every slow path. Bloats memory, slows parsing & use, hurts caching. Avoid.
Yep, so you're adding them to the DOM. They get "interned" in shared Blink/JS heap space. Not "ordinary" cost.
-
-
...and you pay twice for parse (both CPU & RAM): first for JS parse of the string and the second time for CSS parse when you add to the DOM.
- 2 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.