Starting with the release of Strategy ONE (March 2024), dossiers are also known as dashboards.
Users may feel it takes much longer to execute an embedded dossier than directly execute the dossier from Strategy Library Web, especially for the first time when there is no browser cache.
When trying to integrate a Strategy dossier into a custom web application with the embedding SDK, especially when using a custom authentication without requiring that users enter their credentials, all the needed files supporting the dossier functionalities have to be downloaded during the execution. When there is no browser cache (first-time execution), the downloading of these files may take quite long, depending on the Network, Web Server settings, etc. For example, in 10.11, with a 5Mbps network throughput and Web Server GZIP enabled, an embedded dossier may take as long as 30 seconds to be loaded for the first time.
Our Engineering team is continuously working on improving the first-time execution performance. Compared to 10.11 version, 11.0 version has gained a more than 20% improvement as dynamically resource downloading has been implemented.
If the embedded dossier will not be executed directly when the custom web application is loaded, but later triggered by user actions (such as clicking a button), then a possible way to speed up the first-time dossier execution is to pre-load the needed file(s) in the custom web application page.
Imagine you have a custom web application ‘
app.html’ which hosts the embedded Strategy dossier app, you can modify the html file to pre-load the file(s) required for executing the Strategy dossier. And it is suggested to only pre-load the JavaScript file '
mojo-dossier.js', as it's the base file that other JavaScript files depend on.

Then, in the ‘app.html’ file, add the link to pre-load the JavaScript file in the end of the page body, before </body> tag. In this way, the pre-loading won’t block the rendering of the ‘app.html’ page.
<script type="text/javascript" src="/StrategyLibrary/javascript/bundles/mojo-dossier.js?v=10.11.0100.15860"></script>
<script async type="text/javascript" src="/StrategyLibrary/javascript/bundles/mojo-dossier.js?v=10.11.0100.15860"></script>
You can check the most time-consuming JavaScript files from the browser's Developer tool, Network tab when executing a specific dossier. For example: if you have a dossier which has New Graph Matrix visualizations (such as Waterfall) and Graph Matrix visualizations (such as bar chart), then, you can add below lines to the host html page
<script type="text/javascript" src="/StrategyLibrary/javascript/bundles/mojo-dossier.js?v=10.11.0100.15860"></script> <script type="text/javascript" src="/StrategyLibrary/VisFramework/ngm/dist/bundle/ngm.js?v=10.11.0100.15860"></script> <script type="text/javascript" src="/StrategyLibrary/javascript/bundles/vi-ngm.js?v=10.11.0100.15860"></script> <script type="text/javascript" src="/StrategyLibrary/javascript/bundles/vi-gm.js?v=10.11.0100.15860"></script>
<link rel="prefetch" href="/StrategyLibrary/javascript/bundles/mojo-dossier.js?v=10.11.0100.15860"> <link rel="prefetch" href="/StrategyLibrary/VisFramework/ngm/dist/bundle/ngm.js?v=10.11.0100.15860"> <link rel="prefetch" href="/StrategyLibrary/javascript/bundles/vi-ngm.js?v=10.11.0100.15860"> <link rel="prefetch" href="/StrategyLibrary/javascript/bundles/vi-gm.js?v=10.11.0100.15860">