Skip to Main Content
Wydajny JavaScript.
book

Wydajny JavaScript.

by Nicholas C. Zakas
September 2016
Intermediate to advanced content levelIntermediate to advanced
224 pages
7h 33m
Polish
APN Promise
Content preview from Wydajny JavaScript.
YUI Profiler | 195
stop: function(key) {
var time = Timer._data[key];
if (time) {
Timer._data[key] = new Date() - time;
}
},
getTime: function(key) {
return Timer._data[key];
}
};
Timer.start('createElement');
for (i= 0; i< count; i++) {
element = document.createElement('div');
}
Timer.stop('createElement');
alert('created ' + count + ' in ' + Timer.getTime('createElement');
Jak widać, torozwiązanie nadal wymaga ręcznego opracowania, lecz zapewnia wzorzec
dobudowania prolera wczystym JavaScript. Rozszerzając koncepcję obiektu
Timer
można skonstruować proler, który będzie rejestrował funkcje iwyposażał jewkod
dopomiaru czasu. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Wszechstronny JavaScript

Wszechstronny JavaScript

Adam D. Scott
Programowanie w JavaScript Rusz głową!

Programowanie w JavaScript Rusz głową!

Eric Freeman, Elisabeth Robson

Publisher Resources

ISBN: 9788375413113