Re:React, Relay and GraphQL: Under the Hood of the Times Web...
by scottmf on Saturday July 01, 2017 @02:33PM
(#14678291)
They're not using React right now. If you read the article it says they'll be introducing the new version over the next several months.
A lot of this "JS is slow, what happened to good old HTML and CSS, get off my lawn" stuff is simply confirmation bias.
Re:React, Relay and GraphQL: Under the Hood of the Times Web...
by stephenboyd on Saturday July 01, 2017 @05:17PM
(#14679081)
I didn't look close enough in the developer tools to see the limited extent. From what I can see, just the email list sign-up forms on www.nytimes.com are using React, but all of the new front page of mobile.nytimes.com is in React. They are testing the new version of the mobile site in a partial roll-out, so if you open a new browser session there's a good chance the new one will get served to you (It will have a message saying "You’re seeing a test of a new version of the New York Times home page.").
As a sidenode, it does feel sludgy:
- Scroll is not smooth.
- It does not adapt well to different browser sizes
- After a few seconds the page "jumps down"
But the reason might simply be the overkill of JS,animations, overlapping elements (like the static header), ads, dynamically loaded stuff and other crap. When I turn off JS, some of the problems go away.