goldfire/howler.js — pull request #181 by Rob--W (2014-07-15 17:36:33+00:00)
Title: Improve performance of Howl.prototype.load for long URLs

The previous regexp was highly inefficient. It took 21 SECONDS to sniff the type from a data-URI consisting of 128K characters.

The culprit is `/.+\.([^?]+)(\?|$/`.

With this patch, sniffing the type takes less than 1 millisecond for any string.