CYPIAPT-LNDSE / welcome-to-camhs

Fun and accessible questionnaire for children when first visiting CAMHS.
https://welcome-in.herokuapp.com/
MIT License
5 stars 3 forks source link

Organise js files #60

Closed skibinska closed 7 years ago

skibinska commented 7 years ago

Organise js. Right now you have js files using different patterns for containing functionality. We have: Everything written into the root of the file (don't do this!); everything wrapped in jquery document.ready function (this is fine); everything wrapped in iife (this is also fine). You should organise your js! Having a bunch of different scripts lying around with different invocation patterns in the root of you project is not good... Either have zero / one js file per page (clearly named) or have just one js file.