summaryrefslogtreecommitdiffstatshomepage
path: root/src/js/_enqueues/lib/zxcvbn-async.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/_enqueues/lib/zxcvbn-async.js')
-rw-r--r--src/js/_enqueues/lib/zxcvbn-async.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/js/_enqueues/lib/zxcvbn-async.js b/src/js/_enqueues/lib/zxcvbn-async.js
index 88ac5b353c..2ddbb4be83 100644
--- a/src/js/_enqueues/lib/zxcvbn-async.js
+++ b/src/js/_enqueues/lib/zxcvbn-async.js
@@ -1,4 +1,11 @@
/* global _zxcvbnSettings */
+/**
+ * Loads zxcvbn asynchronously by inserting an async script tag before the first
+ * script tag on the page.
+ *
+ * This makes sure zxcvbn isn't blocking loading the page as it is a big
+ * library. The source for zxcvbn is read from the _zxcvbnSettings global.
+ */
(function() {
var async_load = function() {
var first, s;