Skip to content

Commit

Permalink
add comment pointing to async-download info
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Apr 8, 2020
1 parent 2761f4d commit 4970b54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/legacy/ui/ui_render/bootstrap/template.js.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ if (window.__kbnStrictCsp__ && window.__kbnCspNotEnforced__) {

function loadScript(url, cb) {
var dom = document.createElement('script');
{{!-- NOTE: async = false is used to trigger async-download/ordered-execution as outlined here: https://www.html5rocks.com/en/tutorials/speed/script-loading/ --}}
dom.async = false;
dom.src = url;
dom.addEventListener('error', failure);
Expand Down

0 comments on commit 4970b54

Please sign in to comment.