diff --git a/source/js/utils.js b/source/js/utils.js index 2bc2c8495..0e49f2e81 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -449,7 +449,6 @@ NexT.utils = { condition = false, attributes: { id = '', - async = false, defer = false, crossOrigin = '', dataset = {}, @@ -457,6 +456,7 @@ NexT.utils = { } = {}, parentNode = null } = options; + const async = options.async ?? false; return new Promise((resolve, reject) => { if (condition) { resolve();