Blog on All Things Cloud Foundry

How to Speed Up AngularJS Apps That Use Internalization Libraries

Ilya Drabenia


For a while, I was involved into development of a document workflow management-as-a-service system. The client app was created using AngularJS and I was to decide on the best option for its internalization (i18n) and localization (l10n). However, the service had a rather complex UI with plenty of messages to be translated and transferred between the server and the client. Therefore, I was concerned about the impact of client-side translation on performance.

In this post, I explore this in detail and suggest an approach that accelerates performance of AngularJS internationalization.



Evaluation of AngularJS, a JavaScript UI Framework

Ilya Drabenia

During the last two months, our team has been using AngularJS, a JavaScript UI framework, to develop a user interface for the next-generation document management system. We also utilized Grunt for building a client application and Karma for automating unit tests. The back-end part was developed with the Java technology stack.


If you’re a novice to AngularJS, you can start with this introduction article. Below I’ll provide a short overview of the main AngularJS features we tried and give you some tips on how to fix some issues.


Rapid development

With this tool, JavaScript development becomes really fast. A single person can bring out 1–2 significant features a day. Not less important, AngularJS is also good for prototyping. This framework makes it is possible to find the right balance between a code quality and velocity of the development process.


Extending HTML capabilities with Directives

AngularJS comes with a set of built-in directives that allow for creating custom HTML elements and modifying the behavior of DOM elements. It can be quite useful for building complex front ends. Isolated scopes enable developers to divide data and use a particular portion of this data when necessary. One of the main documentation drawbacks is that it provides just a few examples of how to work with directives and scopes. So, we had to use these components intuitively.



Benchmarks and Research

Subscribe to new posts

Get new posts right in your inbox!