How to group console.logs – Advanced JavaScript Logging Using console.group()
You can group related log statements by surrounding them with the console.group() and console.groupEnd() functions: All log statements issued in between will be displayed as a group in the console view. Collapsing and Nesting Logging Groups Note that the groups created by console.group() are initially opened. If you’d rather have them collapsed by default, you […]
The Closure Compiler reduces the size of your JavaScript files and makes them more efficient
What is the Closure Compiler? The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes […]
IE settimeout arguments
setTimeout() schedules an arbitrary function call for some point in future. This is useful when you have functions that do repetitive tasks some milliseconds apartment, but not constantly. The reason why this is used instead of a simply while (true) { … } loop is because Javascript is a single-threaded language. So if you tie […]
Best practices to increase Performance your web site
Minimize HTTP Requests 80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, Flash, etc. Reducing the number of components in turn reduces the number of HTTP requests required to render the page. This is the […]