headjs/headjs — pull request #240 by shreyass (2013-05-24 12:40:09+00:00)
Title: A fix for Issue #239

On browsers which don't support an onload on the link tag, I've put in a hack to create an img tag, and attaching the process function as the onerror handler. Once the response comes in, due to a mime mismatch, the onerror is called. This is a sureshot way to say that the script has loaded.