I am having a performance issue whenever I change my Typescript files. Basically, a change in a single Typescript file seems to invalidate ALL cached Typescript files, and the page takes a long time to load. The Typescript is quite small for now, but I am loading a few large definition files.
I have attached two screenshots from Chrome developer tools showing that the initial page load and the Typescript compiles takes 10-15 seconds each to load. Subsequent cached loads without any changes are almost instant.
I have tried using both the IE and V8 Javascript engine, the differences between the two are small.
Any idea how this page load speed can be improved?
Comments: Hello, Vegard! All the possibilities to accelerate BundleTransformer.TypeScript I've used. The original TypeScript-compiler itself is not fast. In addition, you do measurements in debug mode, when TS-files are processed by separate instances of TypeScript-compiler. If you are using 32-bit mode of IIS, then try to switch to 64-bit. If you need high performance, I recommend to move TypeScript-compilation at the build phase of the project (use MSBuild Task, [Web Essentials](http://vswebessentials.com/) or [Grunt](http://gruntjs.com/)). Generally, in SPA I do not recommend to use the Bundle Transformer, because in this case the processing of all assets (translation, minification and concatenation) must be made in build phase of the project.
I have attached two screenshots from Chrome developer tools showing that the initial page load and the Typescript compiles takes 10-15 seconds each to load. Subsequent cached loads without any changes are almost instant.
I have tried using both the IE and V8 Javascript engine, the differences between the two are small.
Any idea how this page load speed can be improved?
Comments: Hello, Vegard! All the possibilities to accelerate BundleTransformer.TypeScript I've used. The original TypeScript-compiler itself is not fast. In addition, you do measurements in debug mode, when TS-files are processed by separate instances of TypeScript-compiler. If you are using 32-bit mode of IIS, then try to switch to 64-bit. If you need high performance, I recommend to move TypeScript-compilation at the build phase of the project (use MSBuild Task, [Web Essentials](http://vswebessentials.com/) or [Grunt](http://gruntjs.com/)). Generally, in SPA I do not recommend to use the Bundle Transformer, because in this case the processing of all assets (translation, minification and concatenation) must be made in build phase of the project.