Nice: Auto-sync JavaScript Intellisense in VS2013 RC

0 Comments

If autosync is enabled, adding a new JavaScript file to your project will automatically add intellisense support for this file to all JavaScript files in you project:   http://madskristensen.net/post/Auto-sync-JavaScript-Intellisense-in-VS2013-RC.aspx

The best way to load external JavaScript

0 Comments

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">

The 4 JavaScript load opportunities

0 Comments

Interesting podcast by Scott Hanselman and Nicholas Zakas: http://hanselminutes.com/383/enough-with-the-javascript-already-with-nicholas-zakas   It mentions the 4 JavaScript load opportunities: In the <head> tag Before the </body> tag After page load (windows.onload DOM ready function) On demand (when

Using host headers with self hosted ASP.NET SignalR 2.0

0 Comments

If you want to use host headers in development with self hosted ASP .NET SignalR 2.0, you can add the hostheader to your hosts file, found in C:\Windows\System32\Drivers\etc   Then use the following adjusted client

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.

6 Comments

  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