A look at creating well structured modular javascript using AMD library Require.js
I don't know how many of you use lots of javascript libraries, but we found ourselves using quite a lot within certain projects. One of the strange issues that came about from linking JavaScript files was that we occassionally ran into dependency issues, where by a particular JavaScript source file would have a dependency on another JavaScript source file that was not loaded (and therefor not available) yet.
As luck would have it there is an excellent library for dealing with interlinked JavaScript dependencies and module loading which is called : RequireJs
Your new post is loading...