<script> tag within the
<head> section of your HTML page:
<head> section of the page to ensure that the API is fully initialized prior to any body elements. Office hosts require that add-ins initialize within 5 seconds of activation. If your add-in doesn't activate within this threshold, it will be declared unresponsive and an error message will be displayed to the user.
API versioning and backward compatibility
In the previous HTML snippet, the
/1/ in front of
If you plan to publish your Office Add-in from AppSource, you must use this CDN reference. Local references are only appropriate for internal, development, and debugging scenarios.
Enabling Intellisense for a TypeScript project
npm install --save-dev @types/office-js
To enable Intellisense for preview APIs, use the preview type definitions from DefinitelyTyped by running the following command in the root of your project folder:
npm install --save-dev @types/office-js-preview