The best way to load external JavaScript

I found another post from Nicholas Zakas interesting:   The best way to load external JavaScript http://www.nczonline.net/blog/2009/07/28/the-best-way-to-load-external-javascript/   default.html <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Test page</title> </head> <body> <script type="text/javascript" src="http://your.cdn.com/first.js"></script> <script type="text/javascript">

ASP.NET SignalR self hosting: Fixing the error XMLHttpRequest cannot load http://localhost:8080/signalr/negotiate…. Origin http://localhost:52947 is not allowed by Access-Control-Allow-Origin.

  If you follow the tutorial http://www.asp.net/signalr/overview/getting-started/tutorial-signalr-self-host to the letter, you will end up with an error:   XMLHttpRequest cannot load http://localhost:8080/signalr/negotiate?connectionData=%5B%7B%22name%22%3A%22myhub%22%7D%5D&clientProtocol=1.3&_=1378817568655. Origin http://localhost:52947 is not allowed by Access-Control-Allow-Origin. Default.html:1   The solution can be