codecombat/codecombat — pull request #1167 by rubenvereecken (2014-06-16 11:16:38+00:00)
Title: Refactored loading social libraries

This nicely sums it up I think

`initialize.coffee`
```
# Don't initialize all the social scripts when visiting demo pages
if not (/.*\/demo\/.*/).exec window.location.href
initializeSocial()

initializeVendors()
```

Still haven't found how I can put all of those new scripts in an `app/vendors` folder for example. As soon as I put them elsewhere `module` becomes undefined and I can't export anything. This works in the meantime, they're all in `app/lib`.