With RequireJS optimization, are templates added to the build file or stay "on demand"?

36 views Asked by At

Using RequireJS, after optimization using r.js are files loaded via the text plugin (like templates) downloaded on demand or included in the single optimized build file?

1

There are 1 answers

0
kryger On BEST ANSWER

This depends on the value of the inlineText optimizer option. By default it's set to true, meaning that all text! resources will be resolved and embedded into the final bundle at build time. If you'd prefer loading it at runtime set it to false.