flyankur / govis

Governance Data Visualisation Framework
7 stars 4 forks source link

Deciding on the Javascript Pattern #5

Open drecodeam opened 10 years ago

drecodeam commented 10 years ago

Starting a discussion about what patterns to use in our JS :

AMD module pattern

So we are using requireJS for AMD pattern. Makes the code easier to use and allows loose coupling of all modules ( read more about loose coupling ) . Also makes conditional loading super easy, only load what is required, when it is required. ''' load bootstrap modal JS only when some action requiring modal is called, rather than including it by default'''