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: Taritsyn, thank you for the quick response. The reason I want to use BundleTransformer for this is for the developer experience. I can edit the Typescript and reload the page and the changes are there (after 20-30 seconds). It would also appear that BundleTransformer is compiling the Typescript on the initial page load, and then again when each of the individual files in the bundle are requested. This seems to be a **caching bug**. If I turn on `BundleTable.EnableOptimizations = true;` it compiles the Typescript on the initial page load and then serves the bundles quickly (this cuts load time in half). With optimizations disabled it compiles each `.ts` file separately.
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: Taritsyn, thank you for the quick response. The reason I want to use BundleTransformer for this is for the developer experience. I can edit the Typescript and reload the page and the changes are there (after 20-30 seconds). It would also appear that BundleTransformer is compiling the Typescript on the initial page load, and then again when each of the individual files in the bundle are requested. This seems to be a **caching bug**. If I turn on `BundleTable.EnableOptimizations = true;` it compiles the Typescript on the initial page load and then serves the bundles quickly (this cuts load time in half). With optimizations disabled it compiles each `.ts` file separately.