Академический Документы
Профессиональный Документы
Культура Документы
***************************************
What is "unresponsive script error"?
FF would throw this when a script takes too much time to complete execution.
EX:
Let's say a click handler makes a server call and uses data table to show server
data.
Let's say this click binding happened for more than 5 times due to missing unbind.
For next click, all the click handlers will be invoked and FF would throw above
error.
***********************************************************************************
***************************************
How to trigger a break point programmatically? Put debugger; statement:
function f()
{
// Do some operation
debugger; // This statement creates a break point when this code is executed.
// Some more.
}
***********************************************************************************
***************************************
To understand firebug timing & net panel, refer:
http://stackoverflow.com/questions/4263789/timing-with-the-firebug-net-panel-what-
is-the-onload-time
http://www.softwareishard.com/blog/firebug/firebug-net-panel-timings/
***********************************************************************************
***************************************
How to add javascript code after browser has displayed page?
***********************************************************************************
***************************************
How to find missing semicolons in js file that IE was complaining about?
http://www.jslint.com/
***********************************************************************************
***************************************
How to find which part of code took much time?
console.profile(); // Put this at the start of block.
console.profileEnd(); // Put this at the end of block.
console.log("print in console");
console.info("Use console.info instead of console.error");
console.group('hi1');
console.log("Number of elements in collection:");
console.log("Context of the collection:");
console.groupEnd();
***********************************************************************************
***************************************
DOM errors:
1) "NotFoundError: Node was not found"
This error means that node is not found to perform dom operation. EX: removing non
existing element, removing descendent node using removeChild().
***********************************************************************************
***************************************