46
BBC World Service - lite (mastodon.social)
submitted 6 months ago by lemmyreader@lemmy.ml to c/technology@lemmy.ml

My pals in BBC World Service have been doing some awesome work on "lite" versions of their news articles (other page types to follow). They essentially skip the Server-Side React hydration which means you end up with a simpler HTML+CSS page, no JS. Page sizes drop significantly:

top 5 comments
sorted by: hot top controversial new old
[-] davel@lemmy.ml 9 points 6 months ago* (last edited 6 months ago)

On first impression I think I might ideally have used a query parameter instead, leaving the URL path unmodified. I think that might work better for search engines, archivers, and link aggregators like Lemmy. But no one seems to do it that way, and front-end isn’t my bag, so what do I know.

[-] flambonkscious@sh.itjust.works 8 points 6 months ago

It's great to see some progressive web developments after all these years of regressive trash

[-] technojamin@lemmy.world 4 points 6 months ago

Skipping React hydration… so, only rendering on the server? BBC just re-invented server-side rendering, bravo 👏😆

I say this as an 8-year React developer. Damn, our industry really drank the kool-aid on on this one. Of course, plenty of people have been saying that React for static content like this has always been a misapplication of the tool, I’ve been reading opinions like that the entire time I’ve been working with it.

I’m glad BBC is doing this, though. Legitimate kudos to them for recognizing the issue and working towards fixing it. I actually think there are some great benefits that React has given us:

  • A universal component interface for all JavaScript-targeting languages
  • An enormous ecosystem of components
  • Popularization of the “component model”, which has spread to basically every other language that is used to render user interfaces (the mental model is just that much better)
  • A quickly-evolving (React is arguably on its third major paradigm shift) testbed for what works best for UI development

I would be happy if React was supplanted in the near future, but I also have some fondness for it. I know I’m way off topic on this post, just felt like talking about React.

[-] smpl@discuss.tchncs.de 2 points 6 months ago

Nice, but it is not entirely without JS. There is a tracking script from scorecardresearch.com

[-] technojamin@lemmy.world 2 points 6 months ago

Tracking scripts degrade gracefully, so you can disable JS, and the page should still work just fine.

this post was submitted on 14 May 2024
46 points (96.0% liked)

Technology

34917 readers
108 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS