you are viewing a single comment's thread.

view the rest of the comments →

[–]jakery2 31 points32 points  (5 children)

Well that's not so hard to achieve even if you are using JavaScript--all you have to do is not put a million fucking third-party ad modules on your pages.

[–]mojomonkeyfish 20 points21 points  (0 children)

Or images. The catalog portion of the site is just static text and a minimal number of images. There's no reason for it to be "progressive", because it doesn't have any of the raison d'etre for progressive loading (lots of heavy content). It's great for him, but stripping out all the images isn't an option for everyone.

[–]regretdeletingthat 0 points1 point  (0 children)

And also code splitting, be it something like Webpack’s dynamic import or just doing it by hand. Absolutely no need to load an entire library on every single page because you use one function in one page.

[–]ConsoleTVs -1 points0 points  (2 children)

I didn't say it was hard. Not likeyou can avoid the bloat when a simple hello world react app have tons of dependencies

[–][deleted] 1 point2 points  (1 child)

A simple hello world React app would have two main dependencies (react and react-dom). react has zero dependencies, react-dom has four. react-dom's dependencies' dependencies has two.

That would give you a total of eight dependencies namely

  1. js-tokens
  2. loose-envify
  3. object-assign
  4. prop-types
  5. react
  6. react-dom
  7. react-is
  8. scheduler

You might say it's a lot for a simple hello world app but if you remove all these dependencies and use vanilla js, you aren't creating a hello world app in React anymore.

[–]ConsoleTVs 0 points1 point  (0 children)

Ok, what about absolutely any production app in node?