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?
请先登录再写评论。
see http://tutorialzine.com/2015/02/single-page-app-without-a-framework/ - you may find this blog post helpful