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,
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.
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: https://www.flexmonster.com/release-notes/.
You are welcome to update the component. Here is our updating to the latest version tutorial for guidance: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
Please let us know if the fix works fine for you.
the fix works fine!