Hello,
I need to load jQuery in a banner I'm working on. This is the code I currently have:
<script type="text/javascript" src="
http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
window.jQuery || document.write('<script type="text/javascript" src="jquery-1.7.2.min.js"><\/script>')
</script>
I first try to load the library from a CDN and if that is not possible I look for the local version. When I publish the banner the copy of jQuery is not exported.
Should I just call the library as a local resource so GWD include it on the build? I understand I have to include any external documents I use on the banner, even if it's on a CDN, is this correct?
Thanks for your help.