r/webdev • • Feb 13 '19

Bootstrap 5 will remove jQuery as a dependency

https://github.com/twbs/bootstrap/pull/23586
1.5k Upvotes

398 comments sorted by

View all comments

Show parent comments

11

u/spryes Feb 13 '19

750 KB? Where'd you get that from?

React + ReactDOM is ~35 kB minzipped and jQuery slim is ~24 kB minzipped.

It's recommended that first load JS does not exceed about 150 kB minzipped (parsing/compiling is especially expensive on slow devices), adding a jQuery dependency is pretty annoying.

-11

u/[deleted] Feb 13 '19

create-react-app is around 250MB, oh wait did I learn the wrong react?

5

u/spryes Feb 13 '19

Uhh yes you did, if you think a development build tool setup is the same as React's production size shipped to users

-6

u/[deleted] Feb 13 '19

definitely it will be production size

but since I am still new to react, can you link me something to the production build?

something like this ? https://unpkg.com/react-dom@16/umd/react-dom.production.min.js

or npm run build

https://reactjs.org/docs/optimizing-performance.html

and https://reactjs.org/docs/cdn-links.html