Pola Edward
Pola Edward

Reputation: 528

Best Performing Jquery template plugin

I'm working with phonegap to make web apps on mobile devices, and I'm very interested in Jquery templates, as I get facebook and youtube data with ajax and want to render them with a jquery template, so my needs are very simple .

I'm just very concerned with the template plugin performance since it will run on mobile devices, so it must be very effecient, and there are tons of template plugins out there, so which one is the best, performance wise ?

Upvotes: 2

Views: 2529

Answers (2)

Pola Edward
Pola Edward

Reputation: 528

After many searches and trials, I decided to use DotJs as it seems to be the fastest engine while still being very simple to use I've tried this benchmark on my Optimus Black (ICS Android Version) and it was the fastest engine with the highest Ops/Sec. (Higher is better)

Other engines i was thinking to use were

  1. Dust (Linked in Version) as it has been used by linked in and is actively developed, but its size and features were huge regarding my simple needs
  2. Google Closure Templates, Since they are used by google products, so i trusted the performance optimization as they are Battle Tested :) but i read that it isn't actively developed
  3. Handlebars was another popular engine

Upvotes: 0

JSG33kC0d3
JSG33kC0d3

Reputation: 209

I recomend boostrap templates because from 3.0 version it's designed specifically for mobile and is very fast.

And they have a lot of templates avaiable: http://goo.gl/p05xrE

Edit.

Mmmmm. ok sorry. Have you try to do it with underscore?

It can write your html with JSON data very nice.

Upvotes: 2

Related Questions