Ensure core is loaded before app
Merge pull request #4908 from guardian/primary-core-js

Ensure core is loaded before app