GoodBoyDigital/pixi.js — pull request #443 by sirflo (2013-12-13 21:37:07+00:00)
Title: Check for webserved files by looking at the protocol

Previously it would assume a file is being served from the web as long as href happened to include the string 'http' anywhere - not just at the beginning.

This caused problems in our project where files are being loaded locally but the document has "http" somewhere in the URL.

Another way to fix this would be to change the check to `window.location.href.indexOf("http") != 0`.