From 20ab1f97e4b20431a358f84b0d6a25e943b451f7 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 13 Mar 2015 16:55:27 +1100 Subject: [PATCH] REGRESSION: not caching async scripts, remove cache buster --- app/assets/javascripts/discourse/lib/load-script.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/load-script.js.es6 b/app/assets/javascripts/discourse/lib/load-script.js.es6 index 6b39d650afd..2644ec29a72 100644 --- a/app/assets/javascripts/discourse/lib/load-script.js.es6 +++ b/app/assets/javascripts/discourse/lib/load-script.js.es6 @@ -43,7 +43,7 @@ export default function loadScript(url, opts) { if (opts.scriptTag) { loadWithTag(cdnUrl, cb); } else { - $.getScript(cdnUrl).then(cb); + Discourse.ajax({url: cdnUrl, dataType: "script", cache: true}).then(cb); } }); }