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?
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
.