DEV Community

Discussion on: Axios or Fetch?- in 2 minutes

Collapse
 
awesomeironman profile image
Cyrus Gracias

When we add another library it increases customers JS code download time
So we are basically making our site slow for customers using slower connections
And for what? Developer experience? That sounds bad to me

Collapse
 
aidurber profile image
Andrew Durber

It's 4.4KB min+gzip so it's pretty negligible. But as @sgoulas mentioned, there are additional benefits.
If you want a similar API, Jason Miller (@developit) created a tiny version (884b min+gzip): github.com/developit/redaxios. It's missing interceptors but still cool.

But with that argument, you could dismiss every frontend framework as bytes vs developer experience.

Developer experience is not to be understated. But I 100% agree with your sentiment!