Settings

Theme

Blank page with an embedded tweet. How bad can it be?

twitter.com

29 points by pdahal · 16 comments

Reader

7 threads
zugi

Until a year or so ago you could read Twitter with Javascript disabled in your browser. So we know zero lines of Javascript are actually required to read tweets.

I just stopped clicking in Twitter links once they intentionally disabled browsing without Javascript, and use Nitter.net if there's a tweet I really want to read.

  • the_gipsy

    It's common sense that for reading a bit of text and perhaps an image there is no need for JavaScript. Even video doesn't require it. It should all be HTML.

prhrb

One can also embed tweet with nitter by adding /embed in the end and with iframe tag. Eg: https://nitter.fly.dev/mhevery/status/1606438382561026049/em...

Pagespeed score: https://pagespeed.web.dev/report?url=https://nitter.fly.dev/...

reference: https://github.com/zedeus/nitter/pull/515

brundolf

> What hope does an average site have if a simple tweet requires MegaBytes of JS and seconds to interactivity?

Their hope is that their orgs probably aren't as bloated as twitter's

whywhywhywhy

Watching the browser choke two load points to make it appear is truly disgusting.

Honestly pathetic considering the size the engineering team used to be and points to an extremely broken culture.

  • brundolf

    In my experience, a larger engineering team makes these kinds of problems more likely

    I wonder how many teams worked on tweet embeds, each with their own incomplete understanding of the full widget and their own competing product priorities and OKRs

pdahalOP

There is also this alternative solution if you are using react/next

https://static-tweet.vercel.app/

ilyt

> What hope does an average site have if a simple tweet requires MegaBytes of JS and seconds to interactivity?

But dev deploying that abomination spent whole days less by just including random shit instead of understand the problems they solve! That's investor value!

  • Jasper_

    Yeah, if it wasn't for the improved developer velocity of these fancy new JavaScript frameworks, we would have been left with a basic HTML version of the widget that doesn't require any JavaScript and has all the same features. Unthinkable!

  • brookst

    Hey now, if you’re measuring my performance base on lines of code, I am damn well including everything I can think of, and cloning it right into my code rather than using it by reference.

pdahalOP

JS: 1.5MB PageSpeed score: 61/100 Time to Interactive: 9 sec TBT: 1.7 sec

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection