unfortunately, we’re seeing the below message when attempting to use the tool while on our site. Is this a configuration within the released app that causes this? In the meantime, we keep checking our local configurations. Appreciate any insight
quick update for anyone else looking to optimize in the future…
we’ve used a combination of Chrome Developer Tools, especially the performance and network tabs
also used Browserstack to tail logs on mobile devices
the network tab helped us identify elements that were being loaded even when they were not needed (still trying to track down two pesky remaining ones!). the performance tab allowed us to record a mobile session and helped us quickly identify that the animations (on modal launch/close) were most certainly adding to our troubles.
for now, that we’ve optimized enough for the time being. hope its helpful for others!
We’ve been testing further and have identified some things I wanted to share – hoping others might have some ideas, especially WW team experts
navigating between pages in our application results in the JS heap size continually growing
refreshing an already loaded page resets the JS heap size down to lowest ‘base’ level
one of our most intensive pages uses a variable to show/hide a modal which presents data; this data is set within an object onClick; even though the object value is reset on close, opening/closing modal also results in JS heap size growing
we’ve also noticed that the DOM Nodes and JS event listeners count appears to increase each time the same modal is re-opened. is this expected/normal behavior, or curious if this might be adding to our troubles.
we’ve confirmed none of our collections are set to auto-retrieve. since we’ve confirmed the JS heap size continually grows, it seems this is the first item we need to address. are we thinking about it the wrong way?
Good news to share, we’ve solved what we believe is the root of our issue.
As we were building various interfaces within our modal, we were being lazy by copying/pasting the existing modal files. As a result, without realizing/focusing on it, our modal was super bloated.