posted this on August 29, 2012 09:49
Is this functionality possible, and if so then how should it be referenced from within app.js ?
Jeff in Seattle
This is quite a big limitiation. We have been using external JS libraries for many purposes with the classic app. This will severely limit our ability to port many of our widgets to lotus. Are there plans to support this and when cna we expect this functionality?
At the moment we have no plans to support external libraries. We may open this up to a select few in the future.
If not a way to provide external libraries, provide support for internal libraries (in other words, not put all the code within app.js).
My app.js is getting quite large.
+1 on this request
I agree this is quite a bit limitation. Has Zendesk reconsidered this feature or are there still no plans on addressing this in the future.
We're still actively investigating it, the truth is that we all really want to do it! We would use it in our own Apps a lot.
I'll keep you posted at the end of the month when we have a clearer idea of what can and can't be done
Hi Max - I am very surprised by this move and I do not understand why third party js files cannot be downloaded.
I am not sure why enabling third part scripts can be risky. Please shed light. Even Google Apps allows this in their Gadgets API.
On a side note, can't I bundle headjs or yepnope and download the files on the fly?
I understand your surprise. The main reason is a risk for our application in terms of performance. You could have multiple Apps using the same libraries, loading it multiple times, loading it for no reasons etc... All those reasons make it tricky from a performance standpoint.
That' the reason why we are moving slowly on this, we want to make sure we do things right. I'm sure you can understand that.
As for your side note nothing prevents you from doing that in your private App but if you ever want to pass public validation you'll need to follow this document:
How do I include a library js (third party) within the app? Do I need to attach to head in the app.js init?
Also, can I use jquery click $j.click and getJSON instead of using Zendesk events and ajax ways? The app is fairly very big and I do not want to keep changing them all :(
Support Software by Zendesk