How to ‘minify’ Javascript code

DIY Minification No minifier can compress properly a bad code. In this example i just wanna show how much a minifier does. What you should do before you minify And regarding jQuery… i don’t use jQuery.jQuery is for old browsers,it was made for compatibility reasons .. check caniuse.com, almost everything works on every browser (also … Read more

How to measure time taken by a function to execute

Using performance.now(): In Node.js it is required to import the performance class importing performance Using console.time: (living standard) Note:The string being passed to the time() and timeEnd() methods must match(for the timer to finish as expected). console.time() documentations: MDN documentation Node.js documentation