I currently have an `index.html` set up something like this:

<head>
  ... Load local CSS files ...
</head>
<body>
 <div class="product"></div>
 <script src="mapscript.js"></script>
</body>

In my JS, I have this:
var mapControl= new MapControl(mapControlForm, mapDiv);

`mapDiv` is of course defined as 
`document.getElementsByClassName("product")[0]`. When I load `index.html` 
in my browser, I see the fonts I set for a split second before they change. 
When I go to other pages on my site, my fonts work fine. When I remove the 
line of code defining `mapControl`, the fonts work, but the map does not 
load. 

How do I make sure my fonts don't get messed up when my browser loads the 
JS file that puts a GMap on the DOM?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.

Reply via email to