As we introduce more and more javascript functions into our apps, loading time will take longer and longer. One solution is to lazy-load our javscript files.
http://ajaxpatterns.org/On-Demand_Javascript
An important note about this technique – it allows downloading of scripts across different websites. So if you are hosting a JSON-based web-service, take note of the implications.