Get Free Trial

UpdateData triggers localization file loading

Ilaria asked on May 25, 2021

I would like to ask if there is any reason for loading localization files every time an ‘updateData’ fires.
We do a lot of calls to UpdateData method, so this is very time-consuming. Is there a way to ‘switch off’ programmatically this loading? Obviously we also use translations, so we need localization files but I think they should be loaded only once (or at least at each language change).
Here is a JSFiddle that shows you the issue (if you look at the network activity).
Select a language and then click ‘Update data’. I’ve also attached a screenshot from the Google-DevTools. You can see the multiple calls to the **.json file: the call stack starts from the updateData method.
Thank you in advance,


3 answers

Vera Didenko Vera Didenko Flexmonster May 26, 2021

Hello, Ilaria,
Thank you for writing to us.
We have managed to reproduce the same behavior on our end as well.
Our team will provide an improvement so that the localization file is loaded only when required.
This will be available in the minor release version with the ETA 29th of June.
Please let us know if this would work fine for you.
Kind regards,

Vera Didenko Vera Didenko Flexmonster June 30, 2021

Hello, Ilaria,
We are glad to announce that the issue with loading localization on updateData API call was fixed.
This is provided in the 2.9.2 version of Flexmonster:
You are welcome to update the component. Here is our updating to the latest version tutorial for guidance:
Please let us know if the fix works fine for you.
Kind regards,

Ilaria June 30, 2021

Hi Vera,
the fix works fine!
thank you!

Please login or Register to Submit Answer