SPA apps weighs too much

Hello,

I've just installed webstorm and created a reactjs project. Once started, a 'default' app showed on localhost, having the slogan "Complex web apps made easy" and it has just 3 pages with lorem ipsum text, SPA obviously, but my problem is that after I downloaded the main.js file it weighs about 4MB + another .js file ~200kb. My question is, does it worth to create a SPA in this way? having lots of unnecessary js functions/objects/etc. Maybe for a really huge app, it does, but for a small-to-medium, I don't think so. Even so, why would you want to make your app SPA if it would be so big? Just for not refreshing the page? Or are there others benefits?

0

Please sign in to leave a comment.