Rocket Loader doesn't work with Angular 8+


We have upgraded one of our applications to Angular 8+ recently. Angular 8 has a concept called differential loading that will generate either both ES5 and ES2015 builds that will be loaded or not loaded based on type="module" or nomodule tags. When behind cloudflare’s rocket loader, we are noticing this does not play nicely. We are on a staging environment behind cloudflare, and found that when Rocket Loader is enabled, it loads all of the scripts twice. We have no control over the tags that are generated by angular, and we really wouldn’t want to as they are doing their job in regards to differential loading.

Is there a way for Rocket Loader to work with these script tags? Also, if it is possible for cloudflare support to be able to reach out to us in a private conversation, we can share our staging environments with cloudflare support.

Thank you.

You’ve probably figured that Rocket Loader isn’t compatible with all JS, so here’s how to contact Support:

Login to Cloudflare and then contact Cloudflare Support by clicking on the Get More Help button.

This topic was automatically closed after 30 days. New replies are no longer allowed.