Re:Introducing Twitter Lite
by warpech on Thursday April 06, 2017 @04:51AM
(#14048942)
Built mostly with Facebook tech: React, React Native, Jest, Yarn
[ Parent
| on HN ]
Which is smart, because Twitter cannot afford the not invented here syndrome right now.
Doesn't seem to use any kind of server-side rendering.
This comment is getting downvoted but if it's true, it's absolutely a good point. They are optimizing for what is inherently slower: loading JS in the client before anything can be seen or interacted with, rather than rendering HTML and forms so one doesn't have to wait for JS to compile and execute (and all the tracking bloat that comes with it).
Re:Introducing Twitter Lite
by underwater on Thursday April 06, 2017 @07:51AM
(#14049711)
It's a progressive web app. This means users shouldn't have to wait for JS download or compilation on repeat visits.
Re:Introducing Twitter Lite
by daleharvey on Thursday April 06, 2017 @09:18AM
(#14050199)
It is not true, the slow part of web applications is loading over the network, server side rendering puts a dependency on the network and is therefore vastly slower.
With service workers and client side storage you can get to display at least a shell, sometimes the entire UI without touching the network. It is a lot faster
Where do you think that JS in a web page comes from? Not from the network?
Service workers are a cache (and background process), and you still have to consider cache misses. Even if you have a giant JS app and cache it, users still have to download all the JS to actually work offline no matter what.
I don't know why my comment is getting downvoted. I was just making an observation after looking at the source.
Isn't ReactNative for native mobile apps though? This is a web app
> The client-side JavaScript application is developed, built, and tested with many open source libraries including React, Redux, Normalizr, Globalize, Babel, Webpack, Jest, WebdriverIO, and Yarn.
from https://blog.twitter.com/2017/how-we-built-twitter-lite
OP probably assumed React Native was in the list.
Sorry, I added React Native by mistake and was not able to edit my comment later.
Re:Introducing Twitter Lite
by yasserkaddour on Thursday April 06, 2017 @06:10AM
(#14049273)
I think they used React Native for Web
https://github.com/necolas/react-native-web
Wait what. A web framework, adapted to work for native mobile, adapted back to work on the web?
In React Native, you don't have the standard DOM elements since you're not working in a DOM, so it provides some standard elements that get turned into native components (Button, Text, etc). It looks like this is porting those components back to the web. Sounds silly at first, but looks like it can be useful for RN shops.
Its another step to try an unify building apps, and web apps with the same code.
Re:Introducing Twitter Lite
by wrabbitfoot on Monday April 17, 2017 @01:41AM
(#14129395)
No.. it's PWA.