DEV Community

Discussion on: Do you still work with jQuery?

lukeshiru profile image
Luke Shiru

You have to consider mobile networks as well, which can be very fast, but if you're far enough of phone antennas or isolated (maybe on an old house, or a subway station or whatever), then those 30k are a lot just to achieve the same thing you'll get from using fetch. Ideally we should always avoid downloading unnecessary JS. Just take a look at the trends that Remix or Astro are imposing, where JS is loaded only if needed, if not we just use HTML+CSS and that's ok.