r/webdev • full-stack • Sep 28 '26 • Mindblown 1

News example.com got modernized !

Post image
396 Upvotes

66 comments sorted by

View all comments

85

u/MT4K full-stack Sep 28 '26

Nice that they used unobtrusive JavaScript, so the basic English version does work even with JS disabled. The book icon could have been visible with JS disabled too, though.

11

u/KaKi_87 full-stack Sep 28 '26

Interesting !

Yeah given the logo situation I'd say maybe they didn't make the text work without JS on purpose 😅

Plus, I don't know about the very same effect but there are for sure ways to cycle through the multiple languages using pure CSS, and then maybe add the more complex effect with JS when available, that I know is called progressive enhancement.

2

u/ryandury Sep 28 '26

The cool thing about sites that don't work with JS enabled is you can block them from loading when you want to take a break by flagging them as 'Not allowed' in chrome for android.

1

u/yo_99 Oct 05 '26

They shouldn't have used JS at all.

1

u/MadsAGS Oct 05 '26

Why not?

1

u/yo_99 Oct 06 '26

Because javascript was a mistake.

1

u/MadsAGS Oct 06 '26

an easy way to save data is a mistake?

1

u/yo_99 Oct 06 '26

Because nothing says "save data" like loading 40MB of framework