I'm using Google Maps API InfoWindow and I'm setting custom classes via javascript.
this.infoWindow.addEventListener("domready", this.handleContentReady);
handleContentReady = () => {
document.getElementsByClassName("gm-style-iw")[0]
.parentElement
.classList
.add("custom-iw")
}
The issue with it that when infoWindow is first loaded it doesn't have custom styles yet so it jumps from default to my custom styles
Is there a way to hide infoWindow before custom styles are applied?