PSA: embedding/applying CSS in JS is the surefire way to be on every slow path. Bloats memory, slows parsing & use, hurts caching. Avoid.
-
-
Replying to @slightlylate
we should be fixing these perf problems instead of trying to shame developers out of a preferred workflow.
6 replies 3 retweets 32 likes -
Replying to @mikeal
we've been trying for years. HTML Imports, which completely fixes this, is still stuck in limbo.
@slightlylate3 replies 0 retweets 9 likes -
doesn't work in a web worker
1 reply 0 retweets 0 likes -
Replying to @matthewcp @justinfagnani
: wat. Srsly, tho. How far are we down the rabbit hole when that's the concern?
1 reply 0 retweets 0 likes -
you tweet daily about how running any code at all in the main thread destroys perf, so that far.
1 reply 0 retweets 1 like -
Replying to @matthewcp @justinfagnani
: but this is UI code. It has to run on the UI thread.
2 replies 0 retweets 1 like -
nah, main thread only has to apply it. Component definitions can be in worker.
1 reply 0 retweets 0 likes -
Replying to @matthewcp
components are UI, should be ok on main thread. If you're blowing budgets, move biz & i/o logic to workers
@slightlylate@mikeal1 reply 0 retweets 1 like -
Replying to @justinfagnani @matthewcp
splitting UI across an async serialization boundary just makes the app architecture so much more complex
@slightlylate@mikeal1 reply 0 retweets 1 like
: not to mention induced input latency.
-
-
try out https://aliens.click Let me know any latency issues you experience.
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.