RequireJS.NET brings asynchronous JavaScript loading and flexible js bundling configuration to .NET

added by JavaScript Kicks
10/3/2014 3:25:40 PM

263 Views

Writing modular JavaScript is the first step in bringing the front-end development closer to the server-side OOP, for a C# programmer, the Module Pattern applied to JavaScript means that you can emulate the .NET class behaviour by having public/private members and methods. With RequireJS you can go even further, by declaring a module you can specify dependencies to other modules, the same way as you do in a .NET project when you add references to other .NET components. Before a module is loaded by the browser, RequireJS will look for the dependencies required by that module to function, it will fetch asynchronously from the server, all the other modules needed and then will let the browser execute your module code. RequireJS.NET helps you structure the JavaScript code in such a manner that any C# programmer can understand and use it without advanced js programming skills.


0 comments