Twitter's website is absolute garbage, the feed is unresponsive, tweets fail to load, it's just terrible. If you're modeling your frontend off of anything please do not pick Twitter because their web experience is awful.
The thing that drives me crazy is that it breaks a basic feature of the browser, which is that if you load a bunch of tweets in your feed and then ctl-f to search for something, it doesn't work (on Chrome, at least); it doesn't find stuff that's on the page. This is particularly frustrating, because my normal use case for this is that a bunch of new stuff loaded, which throws everything that's on the page already out…
Twitter.com's HTML, which is produced by React Native for Web, explained
91–100 of 163 posts
Re: Twitter.com's HTML, which is produced by React Native for Web, explained
#92Earlier quoted context omitted.
I'm a solo developer, and I have a project that totally can do it. I've done the proof-of-concept in an afternoon, but am mostly focused on web stuff atm. Granted, it leverages NativeScript, but it's really not that hard once you have that.
Could you please share the details? I don't know about a way to render the same template in the browser and nativescript.
const renderEl = flex("UserList", [
label("User", ["Alice"]),
label("User", ["Bob"]),
]);
In NativeScript, you would have these functions create those types of UI elements. For web, they'd probably produce divs and spans.Ofc, there will be certain elements that are native only, or require really special stuff to create.
Re: Twitter.com's HTML, which is produced by React Native for Web, explained
#93Earlier quoted context omitted.
I rarely experience any of these issues and think their front end is quite good. Just their a11y / keyboard nav stuff is some of the best I've seen. Some questionable design choices but that's more of a product thing
Tweets not loading, with an error, except after several tries, is a commonly-reported problem. I've seen it for years, across multiple browsers & devices, happens all the time. It might go away if you log in. I wouldn't know.
Re: Twitter.com's HTML, which is produced by React Native for Web, explained
#94Lots of classic HN dismissals here, though I am glad we as a community have finally gotten past the anger around requiring JS to use the site. In my mouth, Twitter is probably the best, most responsive web app I've ever used. It is not trivial to make a responsive infinite scroll that remembers your place on back, live updates gracefully, has useful shareable URLs, keeps memory usage low, loads quickly, etc. To me it…
Re: Twitter.com's HTML, which is produced by React Native for Web, explained
#95I consider any site that loads 3 seconds to display about 100 bytes worth of unicode text to be utter garbage. I actually wanted to check the precise loading times before posting this, but would you look at this: https://i.imgur.com/VWOlNHu.png I rest my case.
Re: Twitter.com's HTML, which is produced by React Native for Web, explained
#96Lots of classic HN dismissals here, though I am glad we as a community have finally gotten past the anger around requiring JS to use the site. In my mouth, Twitter is probably the best, most responsive web app I've ever used. It is not trivial to make a responsive infinite scroll that remembers your place on back, live updates gracefully, has useful shareable URLs, keeps memory usage low, loads quickly, etc. To me it…
> we as a community have finally gotten past the anger around requiring JS to use the site. We have not. It still sucks. As for the twitter responsiveness experience... You must be living in an alternate universe.
Re: Twitter.com's HTML, which is produced by React Native for Web, explained
#97Earlier quoted context omitted.
An important distinction that often gets lost is that React itself is an abstract, standalone layer above web and native. It handles deciding what to render and when. When you learn the concepts of React, you're learning this layer. Then there are layers that decide how to render. Regular React has a renderer that accepts HTML tags spits out HTML for the browser. React Native has a renderer that accepts more abstract…
I'm curious why it's a special renderer vs just another React component library?
Re: Twitter.com's HTML, which is produced by React Native for Web, explained
#98Twitter's website is absolute garbage, the feed is unresponsive, tweets fail to load, it's just terrible. If you're modeling your frontend off of anything please do not pick Twitter because their web experience is awful.
Re: Twitter.com's HTML, which is produced by React Native for Web, explained
#99Lots of classic HN dismissals here, though I am glad we as a community have finally gotten past the anger around requiring JS to use the site. In my mouth, Twitter is probably the best, most responsive web app I've ever used. It is not trivial to make a responsive infinite scroll that remembers your place on back, live updates gracefully, has useful shareable URLs, keeps memory usage low, loads quickly, etc. To me it…
URLs can be unique ids for scrolling to.
Simple Ajax function to attach cards on scroll.
Poll or get pinged by SSE to pull updates, swap by url as Id
Loads fast if you simply render html and lazy load the images. Css is almost instant.
We can do better with so much less. Unfortunately we now have front end engineers everywhere doing web development.
Re: Twitter.com's HTML, which is produced by React Native for Web, explained
#100Earlier quoted context omitted.
I rarely experience any of these issues and think their front end is quite good. Just their a11y / keyboard nav stuff is some of the best I've seen. Some questionable design choices but that's more of a product thing
About 90% of my interaction with Twitter is is clicking a link from HN. When I do so, there's about a 1/3 chance that tweet doesn't load.