Forum Discussion
MS Teams Tabs - Web embedding drawbacks
Tiago_Sa It's a shame nobody has bothered to answer as I'm sure there are many out there doing this. From my experience, viewing pages from the "Add Tab" function within Teams is fine for basic use. There are many drawbacks but note, this is just our experience so always test to see if it fits your needs.
We found that functions in scripts (javascript) didn't always fire on certain events, like page load. Single page apps were quite unpredictable or static pages that loaded content after page load. Using technologies that served the entire page like ASP.NET Core Web API or ASP.NET WebForms seemed to work the best. Reloading the page from the drop down in Teams rarely resolved the issue. I'm guessing Teams (or whatever renders the page) behind the scenes is aggressively caching the page and it's resources.
Good luck.
Daniel