MaxArt2501,
@MaxArt2501@mastodon.social avatar

A response to @cferdinandi 's recent post(s) on JavaScript and Web Components:
https://dev.to/maxart2501/javascript-is-not-the-problem-k4e

I know he didn't explain his position in details, so a 1800-word article sounds a little unfair, but I think dry and sharp statements need adequate context and analysis.

simevidas,
@simevidas@mastodon.social avatar

@MaxArt2501 @cferdinandi We need to talk more about the acceptable amount of JS during page load. So many websites load 5+ MB of JS which is unacceptable. As long as this problem persists, people with low-end phones will have a poor experience on the web.

cferdinandi,
@cferdinandi@mastodon.social avatar

@simevidas @MaxArt2501 I will continue to maintain that JS is in fact the problem. YES, sometimes it's required. But for content where it isn't, or where you can provide a sensible baseline that you progressively enhance, requiring JS is an anti-pattern. You literally cannot change my mind about this.

MaxArt2501,
@MaxArt2501@mastodon.social avatar

@simevidas @cferdinandi I absolutely cannot fathom how 5 MB of JavaScript could be necessary on page load, indeed. Not even for an intranet, Chrome-only B2B web app.
As I've said in the article, JavaScript should be used wisely. We're on the same page there, I think.

cferdinandi,
@cferdinandi@mastodon.social avatar

@MaxArt2501 @simevidas ever seen a React App in the wild?

MaxArt2501,
@MaxArt2501@mastodon.social avatar

@cferdinandi @simevidas I think that is a rhetorical question.
You can get to the point right away.

cferdinandi,
@cferdinandi@mastodon.social avatar

@MaxArt2501 @simevidas it was not

cferdinandi,
@cferdinandi@mastodon.social avatar

@MaxArt2501 @simevidas Sorry, re-reading this and realizing what you're asking. Payloads of that size are very common with React apps. Do they need that much? Of course not. But it would mean rebuilding them without React.

And back to my original point: a lot of that HTML doesn't and shouldn't require JS at all. JS is in fact the problem.

callionica,
@callionica@mastodon.social avatar

@cferdinandi @MaxArt2501 @simevidas I think Massimo is generally making the point that some web sites require JS for core activities, not as a design choice, but out of technical necessity. (My own example: media player). Once you accept that JS is required on a site, you make different decisions about web component design. Designing WCs so there’s a noJS fallback - as you promote, Chris - is a valid choice, it’s just not the only sensible choice.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • javascript
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines