News for hackers. Stuff that matters.
Re:Introducing Twitter Lite by warpech on Thursday April 06, 2017 @04:51AM (#14048942)
Built mostly with Facebook tech: React, React Native, Jest, Yarn
Re:Introducing Twitter Lite by Artemis2 on Thursday April 06, 2017 @06:37AM (#14049379)
Which is smart, because Twitter cannot afford the not invented here syndrome right now.
Re:Introducing Twitter Lite by bharani_m on Thursday April 06, 2017 @06:24AM (#14049334)
Doesn't seem to use any kind of server-side rendering.
Re:Introducing Twitter Lite by daliwali on Thursday April 06, 2017 @07:08AM (#14049499)
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

Re:Introducing Twitter Lite by daliwali on Thursday April 06, 2017 @10:54AM (#14051038)
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.

Re:Introducing Twitter Lite by bharani_m on Thursday April 06, 2017 @07:57AM (#14049747)
I don't know why my comment is getting downvoted. I was just making an observation after looking at the source.
Re:Introducing Twitter Lite by afro88 on Thursday April 06, 2017 @05:54AM (#14049209)
Isn't ReactNative for native mobile apps though? This is a web app
Re:Introducing Twitter Lite by paradite on Thursday April 06, 2017 @06:05AM (#14049252)
> 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.

Re:Introducing Twitter Lite by warpech on Thursday April 06, 2017 @06:55AM (#14049440)
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
Re:Introducing Twitter Lite by infogulch on Thursday April 06, 2017 @10:09AM (#14050613)
Wait what. A web framework, adapted to work for native mobile, adapted back to work on the web?
Re:Introducing Twitter Lite by zwily on Thursday April 06, 2017 @10:43AM (#14050925)
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.
Re:Introducing Twitter Lite by simonlc on Thursday April 06, 2017 @03:06PM (#14053576)
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.
Re:Introducing Twitter Lite by simonlc on Thursday April 06, 2017 @03:05PM (#14053557)
I believe the author of that module is also one of the main people who worked on the react twitter mobile.