Single Reference JavaScript Pattern for SharePoint 2013 App Development and Web Development (SRJ Pattern by Melick)
I have tried many different ways to properly organized JavaScript in my Developments. When I'm developing I have faced following issues. Each and every place we need to include script files IF one place change we need to change all the pages for references Assume we need to update JQuery version then we need to change all pages which refers scripts. Thus i thought to work on my pattern with the help of JavaScript Loader to overcome this situation. I have used Head.js to dynamically load JavaScript's. There are few other JavaScript loaders such as RequireJS Head.js ControlJS LABjs I have chosen Head.js because of performance and simplicity you can develop this pattern to work with any JavaScript loader. Head.js supports other css declaration and media queries as well. This pattern can be extended support css loading as well. This is very simple pattern. In here you need to only refer one script in a page and It will take care of loading other scripts for you. S...