equal
deleted
inserted
replaced
|
1 /** |
|
2 * @output wp-includes/js/zxcvbn-async.js |
|
3 */ |
|
4 |
1 /* global _zxcvbnSettings */ |
5 /* global _zxcvbnSettings */ |
|
6 |
|
7 /** |
|
8 * Loads zxcvbn asynchronously by inserting an async script tag before the first |
|
9 * script tag on the page. |
|
10 * |
|
11 * This makes sure zxcvbn isn't blocking loading the page as it is a big |
|
12 * library. The source for zxcvbn is read from the _zxcvbnSettings global. |
|
13 */ |
2 (function() { |
14 (function() { |
3 var async_load = function() { |
15 var async_load = function() { |
4 var first, s; |
16 var first, s; |
5 s = document.createElement('script'); |
17 s = document.createElement('script'); |
6 s.src = _zxcvbnSettings.src; |
18 s.src = _zxcvbnSettings.src; |