Externalize Javascript in YAP

Posted by Haseeb Khan on Stack Overflow See other posts from Stack Overflow or by Haseeb Khan
Published on 2010-04-05T13:31:19Z Indexed on 2010/04/05 13:33 UTC
Read the original article Hit count: 385

Filed under:
|
|
|

I am working on a Yahoo! App which requires certain external Javascript Frameworks to be loaded and used. Also in the Yahoo! App Best Practices Guide, it is also mentioned that the sources should be externalized, however, externalization isn't working for me.

I am using the standard procedure to load the external JS file like the following:

<script src="http://www.google.com/js/nxsl.1.js"></script>

But the above statement is giving me an error that external sources are not allowed.

Is there any way to use external JS files as I don't want to include all of my JS Login inline, it doesn't make sense to me and majorly my code won't be re-usable.

Any thoughts ?

© Stack Overflow or respective owner

Related posts about yahoo

Related posts about yap