Which script references are best for deployment?


in starting html apps office, makes clear that it's best to use cdn reference office.js. description here:

  <!-- use cdn reference office.js when deploying app -->    <!--<script src="https://appsforoffice.microsoft.com/lib/1.0/hosted/office.js"></script>-->      <!-- use local script references office.js enable offline debugging -->    <script src="../scripts/office/1.0/microsoftajax.js"></script>    <script src="../scripts/office/1.0/office.js"></script>

what imply other scripts? how ajax , jquery? keep local references deployment or should cdn references well? if latter, references should added?

best wishes , in advance,

daniel

the benefits of content delivery networks twofold:

1 - cdn can potentially serve files user faster, may located physically closer user server, , reuse different web sites can mean script cached before user loads app.

2 - save on own server's bandwidth, reducing costs.

there other advantages too, such increased trust you've got "good" copy of script, minimized releases, ability swap out versions, debug builds, https, etc.

there several cdns out there can choose popular scripts. microsoft maintains 1 has worked me. you'll find documented here:

http://www.asp.net/ajaxlibrary/cdn.ashx

you'll find jquery, ajax, knockout, , host of other scripts there.

as maintaining local copy of script, that's option. microsoft cdn above shows code uses cdn , falls on local copy.



Microsoft Office for Developers  ,  Apps for Office and SharePoint  >  Developing Apps for Office 2013



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'