And that's just the vendor file!: https://www.vets.gov/generated/vendor.entry.574d7c1b8a175484ffb9-1536687772278.js …
-
Show this thread
-
Because this is in the now-traditional style of cultural-React-inspired DIY-bloat (everything's pluggable, which means an exercise to the reader), the app bundle includes Proptypes, what *looks* like a full copy of Lodash, and oh so very much more.
1 reply 0 retweets 6 likesShow this thread -
The net result is to push TTI in this trace back nearly 4 full seconds: https://www.webpagetest.org/video/compare.php?tests=180912_6Q_5fd08e0ef64071de6f3cd266c36a3cac-r:1-c:0 …
1 reply 0 retweets 1 likeShow this thread -
There's a lot going on deeper in this app, it seems: https://github.com/department-of-veterans-affairs/vets-website/tree/master/content/pages … But why is the front-page paying for that? Why are our vets and their loved ones being slowed down in accessing essential services this way?
3 replies 0 retweets 6 likesShow this thread -
If there's something that *doesn't* need React, it's a drop-down menu. The sport of pure-CSS drop-downs was won more than a decade ago. There's no excuse.
5 replies 4 retweets 34 likesShow this thread -
-
Replying to @ryanflorence
Let's say you do need JS (or a drop-down, which you probably don't). That only leaves ~390K to explain.
1 reply 0 retweets 0 likes -
-
Replying to @ryanflorence @slightlylate
You have a good point in this thread but you rope in all sorts of irrelevant things to try to make it. You regularly conflate "frameworks!" with "just too much JS for this page". React is 35kb. You point your finger at frameworks but that isn't the problem here at all.
1 reply 1 retweet 19 likes -
Replying to @ryanflorence @slightlylate
For instance, lets talk about that hero image, it's 242 kilobytes which is about seven Reacts! Or fonts. They've got 216 KB of fonts. That's another six Reacts! Their initial bundle should be smaller, but frameworks are the least of this site's problems.
1 reply 0 retweets 9 likes
Fonts are a problem, but images aren't critical path. And font download is in competition with the JS in this trace.
-
-
Replying to @slightlylate @ryanflorence
I mean, if your point is that this site wasn't built well, ok. But nothing hurts as much as script, and there's waaaaaay too much of it here.
2 replies 0 retweets 0 likes -
Replying to @slightlylate
Right. Site wasn't built great, so why do you continually go straight for frameworks as the problem when they represent < 40kb of it?
1 reply 0 retweets 5 likes - 6 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.