I'm using Angular2 for my site, Angular 2 is really wonderful in many ways, but A BIG problem is: It's tooo slow when you open an Angular 2 page for the first time.
Here is an example: (in Chinese) https://771dian.com/danmu <https://lh3.googleusercontent.com/-bPMlQnTSL80/VgIYOSbyZPI/AAAAAAAAAEw/4NGuZSjGc1I/s1600/2015-09-23%2B11-10-03.jpg> This simple page includes nearly 20 angular2 components, each one with a .js file and a html template. Which means, when somebody open this simple page, server need to send more then 40 files to client, including angular.js, system.js and traceur-runtime.js. That's really too many files even with SPDY or HTTP/2. The example site above is using SPDY, but I still need to wait for a long time before chrome shows anything. (By the way, for the server side, I'm using node.js with KOA web framework, which should be fast.) And think about an index page for a CMS, it's gonna be more than 50 components for a single page, which means when you open that page, server need to send more than 100 files to client. Is there a solution for this "too many files problem"? Thanks. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
