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 […]
String Truncation (Ellipsis) using jQuery for IE FF Opera
you could achieve the same thing by writing a small JavaScript code:
jQuery Tips and Tricks you Must Memorize – Performance
Storing Data Use data method and avoid storing data inside the DOM. Some developers have a habit of storing data in the HTML attributes like ex.: HTML attributes is not meant to store data like that and the “alt” as a parameter name does not really make sense. The right alternative in most cases is […]
keep looking »