<%= javascript_include_tag 'map.js' %>
-<script type="text/javascript">
+<script type="text/javascript" defer="defer">
<!--
var brokenContentSize = $("content").offsetWidth == 0;
var marker;
var map;
- function init(){
+ function mapInit(){
map = createMap("map");
<% if bbox %>
resizeMap();
}
+
+ mapInit();
+ window.onload = handleResize;
window.onresize = handleResize;
- window.onload = init;
// -->
</script>