Live data from Hacker News

Text-only CNN

lite.cnn.io

1–10 of 319 posts

Re: Text-only CNN

#3
EDIT: As I wrote this, someone deployed a server-side rendered version of the site. Now the site is perfect. :)

This site appears to load ~350 KB of JavaScript, which I think is a bit excessive for a "lite" text-only site. From the sourcemaps, I found a long list of libraries, including:

* react

* redux

* redux-thunk

* react-router

* axios

* base64-js (why not window.atob/btoa?)

* core-js

* fbjs

* react-hot-loader (should not be in a production build)

* ...a bunch of other smaller modules

There's only about 10 KB of non-library application code. Note that I ignore gzip when evaluating this sort of stuff, since that many bytes of code still need to be parsed, no matter how much it compresses.

For the person who made this site, I would replace React with Preact (or Inferno), which should remove most of the bloat. Server side rendering would also be nice for those who don't have JavaScript enabled and would also improve the loading time.

At least it's still better than cnn.com. http://www.webpagetest.org/result/170910_C8_e78305788a19b0fb...

Re: Text-only CNN

#8
My laptop can run computationally-intensive physics simulations and play streaming hi-def video with no problem, but if I click a link to a mainstream news article it just about keels over and dies. How did our grandparents ever manage to load the news on an underpowered machine called "paper"?

Re: Text-only CNN

#9
post #3

EDIT: As I wrote this, someone deployed a server-side rendered version of the site. Now the site is perfect. :) This site appears to load ~350 KB of JavaScript, which I think is a bit excessive for a "lite" text-only site. From the sourcemaps, I found a long list of libraries, including: * react * redux * redux-thunk * react-router * axios * base64-js (why not window.atob/btoa?) * core-js * fbjs * react-hot-loader (s…

>> At least it's still better than cnn.com.

That's literally the entire value prop of the website. The author isn't obligated to use your personal list of approved web tools.

Re: Text-only CNN

#10
Does this belong to CNN? It's great to read news without clutter, just clear contents. I hope there are many sites like this, it saves you from load the whole page then click the reader mode or similar.
Post reply on HN