Office.js Not Fully Loaded Despite Calling Office.onReady()

Jesse Shalev 0 Reputation points
2025-03-18T22:15:53.7533333+00:00

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?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,058 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.