Here's the default design of a Zendesk App:
(function() {
return {
};
}());
- Never write code before the return.
- If you want to write code before the return, see rule number 1.
- If you REALLY want to write code before the return, be sure to know what you're doing and BENCHMARK / AUDIT you app.
The easiest way to audit your app is to use the Chrome Dev Tools, please see this great article by Addy Osmani for more information.