title: JavaScript works when FireFox console/inspector open, but not when closed
body: <p>I have the following JavaScript
      
          
              
                  
                  
                  
                      Close
                  
              
          
      </p>
  
  <pre><code>@section('javascript')
  @parent
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jsrender/0.9.91/jsrender.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  function roundToTwo(num) {    
      return + (Math.round(num + "e+2")  + "e-2");
  }
  $(".pl-coord-link-button").on("click", function() {
      $("#pl-modal-map-content").html(
          $.templates("#pl-map-template").render({
              bbox1: roundToTwo($(this).data('lon') - 0.02),
              bbox2: roundToTwo($(this).data('lat') - 0.02),
              bbox3: roundToTwo($(this).data('lon') + 0.02),
              bbox4: roundToTwo($(this).data('lat') + 0.02),
              lat: $(this).data('lat'),
              lon: $(this).data('lon')
          })
      )
  })
  &lt;/script&gt;
  &lt;script id="pl-map-template" type="text/x-jsrender"&gt;
  &lt;div class="embed-responsive embed-responsive-4by3 border"&gt;
      &lt;iframe class="embed-responsive-item" scrolling="no" src="http://www.openstreetmap.org/export/embed.html?bbox=@{{:bbox1}}%2C@{{:bbox2}}%2C@{{:bbox3}}%2C@{{:bbox4}}&amp;amp;marker=@{{:lat}}%2C@{{:lon}}&amp;amp;layer=mapnik"&gt;&lt;/iframe&gt;
  &lt;/div&gt;
  &lt;div class="py-2 text-muted pl-coordinates"&gt;
      &lt;a target="_blank" href="https://www.openstreetmap.org/?mlat=@{{:lat}}&amp;amp;mlon=@{{:lon}}#map=5/@{{:lat}}/@{{:lon}}" class="pl-coord-link"&gt;&lt;i class="fas fa-globe-americas" aria-hidden="true"&gt;&lt;/i&gt;@{{:lat}}&amp;deg; @{{:lon}}&amp;deg;&lt;/a&gt;
  &lt;/div&gt;
  &lt;/script&gt;
  @endsection
  </code></pre>
  
  <p>When I open the console, the map zooms in as expected, but when I close it the map is all the way zoomed out</p>
  
  <p>I don't understand how opening the console would change anything, I thought maybe it was because it made the window smaller, but I resized the window and it still doesn't work?</p>
  
  <p>What changes when the console is open?</p>
  
  <p>Update: Testing in Chrome Dev and everything works as expected, must be a FireFox specific bug</p>