JavaScript for Line of Business Applications
596.1K views | +0 today
Follow
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...

Popular Tags - Filter using the Funnel

Current selected tags: 'performance', 'vanillajs'. Clear
Scoop.it!

Let’s Write Fast JavaScript

Let's Write Fast JavaScript - The JavaScript Collection - Medium
A few interesting JavaScript benchmarks and tips
No comment yet.
Scoop.it!

Don't optimise JavaScript

In modern browsers, JavaScript is rarely the cause of slow applications. There are many layers involved in web applications that are way slower.

The first thing to do is to investigate to find out where the performance issue is coming from. The causes can be multiple:

* Relying too much on the connexion

* Extensive DOM manipulation

* Rendering issues (forced layout...)

* io (e.g. repeated usage of localStorage)

Use the Network tab of your favourite browser's development tool. Make sure your requests don't have any impact on your application at start and run time. Repeated Ajax calls can slow down applications too.

Identifying slow DOM manipulation is a bit harder. The Timeline tab of Chrome's dev tools can help you pinpointing such issues. Of course, you must get familiar with the best practices. For example, when rendering a list of items in a templating engine, move the loop to the template and append all items to the DOM in one operation.

Rendering issues can also be captured by Chrome's dev tools and starting from version 27, Firefox can now log functions that trigger a reflow!

There are a lot of valuable resources on the net about how to track down and fix these issues, so I won't cover them here. Once fixed, your application should work smoother. Not the case with yours? Keep reading then.

No comment yet.
Scoop.it!

JavaScript Performance For The Win

JavaScript Performance For The Win | JavaScript for Line of Business Applications | Scoop.it

JavaScript performance is a very hot topic nowadays. There's a lot of information out there on what browsers do with JavaScript code in order to execute it faster. Let's go over some of the tips that will help you write faster JavaScript code.

* Tooling
* Non-optimizable code
* Using Local Variables
* Literals
* For-In
* Arguments

No comment yet.