diff --git a/app/assets/javascripts/discourse/app/lib/load-script.js b/app/assets/javascripts/discourse/app/lib/load-script.js index 5acbbceac46..09c52809fa2 100644 --- a/app/assets/javascripts/discourse/app/lib/load-script.js +++ b/app/assets/javascripts/discourse/app/lib/load-script.js @@ -48,11 +48,6 @@ export function loadCSS(url) { } export default function loadScript(url, opts = {}) { - // TODO: Remove this once plugins have been updated not to use it: - if (url === "defer/html-sanitizer-bundle") { - return Promise.resolve(); - } - if (_loaded[url]) { return Promise.resolve(); }