Skip to content

Freeze during first execution of Office Scripts in Excel Online #801

@obibann

Description

@obibann

Hello,
We are experiencing a recurring issue with Office Scripts in Excel Online in our production environment.
Every time a script is modified, or when a new user runs the script for the first time, Excel Online experiences a temporary freeze before the actual execution begins. This freeze can last several minutes and significantly impacts the user experience.
After this initial execution, subsequent runs are fast, which suggests the issue is related to initial compilation or script caching.
The script itself is well optimized and executes very quickly once compiled. No error messages are displayed.
This behavior is problematic for our production deployment, especially in a multi-user/multi-files context.

Questions:

Is there a way to precompile or preload scripts to avoid this freeze?
Is it possible to share the compilation cache between users or sessions?
Do you have any official recommendations to reduce this kind of latency?

Thank you in advance for your assistance.

Excel Online build 16.0.19406.42306

Metadata

Metadata

Assignees

Labels

Needs: attention 👋Waiting on Microsoft to provide feedbackType: product bugBug in the Office Scripts platform or Office Scripts APIs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions