1

enter image description here

When loading my excel add-in, I see that office.js gets blocked from the edge browser inside of excel, see screenshot. How to prevent this from happening? I tried to time my script loading different, but that didn't help. This causes my custom functions not being registered properly anymore.

taskpane.html

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>title</title>
    <link rel="icon" href="../assets/favicon.ico">

       
    <!-- Modified Office.js loading -->
    <script type="text/javascript" src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js"></script>
    <link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/11.0.0/css/fabric.min.css"/>
  
    <!-- Load other scripts after Office.js -->
    <script type="text/javascript" src="../functions/functions.js"></script>
    <script type="text/javascript" src="taskpane.js"></script>

I played around with delays and more, but I actually have no idea how to fix this. Any help would be much needed, I'm willing to donate 10 € in crypto for the solution. The problem is not limited to one machine, but appears in VM, Excel in Edge browser and Excel desktop, multiple devices.

Different script loading or delays, either same behavior or broken add-in loading.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.