Twitter Bootstrap: Comparison of performance between data attribute and APIs?

In accordance with this API-attribute data is not always the most productive.
Have you noticed significant improvements when switching from a data attribute to a software api?

+5
source share
1 answer

I tried

$(document).ready(function() {
  $('body').off('.data-api');
});

on javascript.html (where the whole javascript plugin is called): https://github.com/twitter/bootstrap/zipball/master

data-api off:

there are 16026 calls and 226.998ms are required

benchmark twitter bootstrap data-api off

data-api on (source file):

the same number of calls and takes about the same time

enter image description here

Conclusion

, , jQuery .

, , .

+3

All Articles