Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html5>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Testing of Components</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
$(function() {
// benchmark async fetching of 10 files
/**
* Trying out different code approaches to break out of a
* deep callback chain in node.js
*
*/
/**
* TEST #1 - Using a try/catch block
*/
(function (throwError) {