I’m developing a map-heavy site which loads some of my Google My Maps into an iframe. Every map is loaded into its own absolute positioned iframe, stacked one on top of the other, with visibility controlled by z-index. This is so that a user’s map panning and zoom is retained for each map even when a different map is chosen from a tabbed menu. If they go back to the first map, it is in its same state the user left it in, rather than being reloaded and reverting to its initial state.
My issue is that as I add more maps to my webpage, the initial webpage load is getting too data-heavy and crashes browsers on mobile devices. So instead of each map having the inbuilt “src” defined for the iframe, which results in every map being loaded simultaneously, I want to change it to “data-src” so that each map is loaded only if/when the user clicks on that map’s tab.
My problem is that when I try to delete the current iframe “src” URL in Xway for each iframe, it doesn’t delete. I can delete it, but it immediately comes back as soon as I click elsewhere.
I want to delete each iframe “src” URL, and replace it with an extended html attribute “data-src” instead, and that attribute contains the map URL.
Am I doing something wrong, or is this an Xway bug?