From 8a9bf2a08bc3f1727f1b5719f271763d1f1cfcc2 Mon Sep 17 00:00:00 2001 From: Anton Timmermans Date: Thu, 7 Jun 2018 14:51:02 +0000 Subject: Docs: Improve JSDoc for `zxcvbn-async.js`. Props manuelaugustin, igorsch, LisanneKluitmans. Fixes 43948. git-svn-id: https://develop.svn.wordpress.org/trunk@43333 602fd350-edb4-49c9-b593-d223f7449a82 --- src/js/_enqueues/lib/zxcvbn-async.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/js/_enqueues/lib/zxcvbn-async.js') 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; -- cgit v1.2.3