I am developing a SharePoint 2013 hosted app and use REST and/or CSOM queries to retrieve items from lists and use them on a single page app (SAP). Because the page is not refreshing, big amounts of memory leaks that otherwise wouldn't be a problem become a huge issue and the app reaches its maximum allowed memory and crashes. I use IE Developer Tools to monitor the memory and compare snapshots. Looks like jQuery is caching the data that I put on the view, including the various handlers, and every time I change the data on my view as much as 7 MB is retained. I am attaching an image of the details and where I traced a circular reference on a function that is abbreviated. I am quite lost about what I can do here. Is there a magical way to prevent (if this is even relevant here) jQuery from caching some or all of the data? Any idea or info is much appreciated.
- Edited by Jerry ZyMicrosoft contingent staff, Moderator Tuesday, May 26, 2015 6:25 AM edit pic format