: two related things: running less code is always better. Let the browser do what it can. Second, timing matters
-
-
Replying to @slightlylate
: I see lots of React apps screw themselves by loading everything up front; webpack and script-centricness defeat browser help
1 reply 0 retweets 1 like -
Replying to @slightlylate
: if you could break up the work and load modularly, when needed, that can work... but that's not where React apps are at today
2 replies 1 retweet 1 like -
Replying to @slightlylate
webpack does on-demand imports pretty well, either delayed or triggered by interaction. https://sokra.github.io/slides/frontend-optimize … has examples
2 replies 0 retweets 0 likes -
Replying to @psimyn
: what I'm seeing in projects is that even if this is true in principle, nobody does it. FWIW, was true of the Dojo build system too
1 reply 0 retweets 0 likes -
Replying to @slightlylate
: so teams us the tools that make them productive, assuming they also handle this dimension -- which they don't by default
1 reply 0 retweets 1 like -
Replying to @slightlylate
: when the things that make development easy make the UX suck, it's reasonable to call them misguided.
1 reply 0 retweets 2 likes -
Replying to @slightlylate
: when we were misguided in '05, it was excusable. Pretty new stuff. It's a decade+ later. What's our excuse?
1 reply 0 retweets 0 likes -
Replying to @slightlylate
I was going to say lack of docs.. Async imports by default (or detecting how module is used) would be super useful.
1 reply 0 retweets 0 likes -
Replying to @psimyn
: yeah..hmm. We don't structure our code correctly for this, and that's because we assume we schedule the work, not the browser
1 reply 0 retweets 0 likes
: I've seen a few things that give me hope: HTML Imports, HTTP/2 push, Service Worker cache-ahead for granular imports
-
-
Replying to @slightlylate
: those things actually let the browser interleave the work and schedule it well.
1 reply 0 retweets 1 like -
Replying to @slightlylate
: but to use them effectively, we've gotta get out of the "JS ALL THE THINGS!?!?!!!" mindset.
2 replies 0 retweets 1 like - 4 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.