Why use defer with Google Maps Javascript?
问题 The Google Maps javascript does some heavy DOM manipulation. Even so, the fine docs suggest to load it with the defer flag: <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async defer></script> Why would the defer flag be suggested for a script that performs DOM manipulations? I ask to learn both about the defer flag and to learn about the Google Maps API as I seem to have a misunderstanding about what one of them is doing. 回答1: Normally, a script tag