Forum Discussion
Pop out sideloaded app takes long time to load
- Aug 08, 2024
ChristopherEdling , we got update from engineering team stating that, this is happening because the app never initializes the App SDK (i.e. teams-js). While Teams apps are built on the same web technologies as standard web sites, there are some requirements that they need to meet as documented here:
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/tab-requirementsThis is one of the prerequisites which this app has not implemented:
Within your content page, add a reference to Microsoft Teams JavaScript client library using script tags. After your page loads, make a call toapp.initialize(), or else your page isn't displayed.Just wrapping an existing website in an app manifest does not produce a well-functioning Teams Apps. You need to do some additional work to make your websites integrate well with Teams.Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
I have a small test manifest you can use. All it does is loading a Swedish newspaper (dn.se) in the app.
It loads quick in Teams but if you click the "..." and then "Open app in new window" it opens a new window and it takes long time to load.
ChristopherEdling , we got update from engineering team stating that, this is happening because the app never initializes the App SDK (i.e. teams-js). While Teams apps are built on the same web technologies as standard web sites, there are some requirements that they need to meet as documented here:
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/tab-requirements
Within your content page, add a reference to Microsoft Teams JavaScript client library using script tags. After your page loads, make a call to
app.initialize(), or else your page isn't displayed.Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- ChristopherEdlingAug 23, 2024Copper ContributorHi again
I have made some changes to our app and made sure app.initialize() is called in a different place and it seem like the app is functioning better.
I went form about 25 seconds loading time to 1! 🙂
Thanks for the help,
Christopher Edling - ChristopherEdlingAug 11, 2024Copper ContributorThanks for the quick feesdback.
I will review our app and see if I can fix this and get back to you about the result.
Thanks,
Christopher Edling