Working in the world of custom WAB development using JSAPI 3.x, and looking at some performance tweaks.
Notice that when I use the following approach to update multiple layers' visibility, it takes a long time to update the map...
What I see in Chrome Dev Tools is that for each pass through and layer for which visibility is updated, there is a call to server that returns a new PNG. I guess that makes sense. So we're waiting for the last of multiple images to be available before the update of the map is reflected in the browser. Is there a way to somehow redesign this to where I can make all my update before the call to the server happens and then receive one PNG?