JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,058 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When developing a Word add-in, the following error message is encountered: "Office.js has not fully loaded. Your app must call 'Office.onReady()' as part of its loading sequence (or set the 'Office.initialize' function). If your app has this functionality, try reloading this page."
The implementation of Office.onReady
is as follows:
Office.onReady((info) => {
if (info.host === Office.HostType.Word) {
document.getElementById("sideload-msg").style.display = "none";
document.getElementById("app-body").style.display = "flex";
document.getElementById("run").onclick = run;
}
});
Attempts to set the Office.initialize
function have also been made, but the issue persists. Is there a known solution to this problem?