Differentiate between current domain and domain of requested image
<p>I want to be able to differentiate between images requested from the current domain and from external domains to deal with canvas and cross domain requests. I am currently proxying all absolutely sourced images and not proxying local ones using</p>

<pre><code>if ( $(this).attr('src').substr(0, 4) == 'http') { …
</code></pre>

<p>However, this is obviously inefficient. What is the best way to differentiate between images on the current domain and those on another domain?</p>
