require-handlebars-plugin icon indicating copy to clipboard operation
require-handlebars-plugin copied to clipboard

Calling several templates causes loading i18n file once per template

Open joaquinmarti opened this issue 10 years ago • 1 comments

Having the next code:

define(['hbs!template/one', 'hbs!template/two'], function (tmplOne, tmplTwo) {

The browser calls twice to en_us.json file. My application has some modules loading different templates when the App starts, and I'm getting many calls to i18n file.

Is there any way to avoid that and reuse the content file for all templates?

joaquinmarti avatar Dec 04 '13 12:12 joaquinmarti

+1

RWOverdijk avatar May 14 '14 20:05 RWOverdijk