The larger issue, of course, is script eval is single-threaded. We can't construct (e.g.) DOM off-thread. And script ~10x slower on phones.
-
-
Replying to @slightlylate
Not all phones, mind. Developers with ~$700 iPhones & Pixels are living in a different world to most folks.
2 replies 5 retweets 19 likes -
Replying to @slightlylate
The most obvious impact is interactivity blocked on script eval. We can't load/run main-thread JS w/o halting input processing.
1 reply 0 retweets 11 likes -
Replying to @slightlylate
But what I'm seeing in traces is how script-based abstraction & dependence is dragging folks away from the impacts of these choices.
1 reply 0 retweets 2 likes -
Replying to @slightlylate
Alex Russell Retweeted Alex Russell
Old news that webdevs who don't know DOM instinctively pull in libs when not needed. We've tech'd up from there:https://twitter.com/slightlylate/status/790991610100101120 …
Alex Russell added,
1 reply 2 retweets 5 likes -
Replying to @slightlylate
So when you see folks saying
#usetheplatform, this is what we're talking about. We're not succeeding on mobile w/ current approaches.1 reply 4 retweets 8 likes -
Replying to @slightlylate
Could go on-and-on about the script-first thing: resource fetch priorities, browser scheduling and idle-time control, input processing, etc.
1 reply 0 retweets 3 likes -
Replying to @slightlylate
The most important thing to keep in mind is that when you put your app in script, you are now entirely responsible. Browser can't help you.
1 reply 19 retweets 31 likes -
Replying to @slightlylate
Maybe you want/need that control. Congrats, you have it! But keep in mind what you're giving up and will need to work to rebuild.
3 replies 2 retweets 13 likes -
Replying to @slightlylate
what is the way to ship tpls then? They live in the memory (DOM or JS) anyway. Is difference that memory is doubled in JS?
1 reply 0 retweets 0 likes
-
-
Replying to @slightlylate
so is it better to load chunks in an iframe when HTML imports aren't available?
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Replying to @slightlylate
or I'm stupid.. For chunk simple json xhr with separate js/css/tpl sections would work. Just avoid it be in JS

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.