Skip to content

Commit ec8a171

Browse files
authored
Merge pull request dropbox#192 from rhc2104/patch-1
Fix readme typo
2 parents 8db3a7c + 7afd13c commit ec8a171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ zxcvbn operates below human perception of delay for most input: ~5-20ms for ~25
219219

220220
Then try one of these alternatives:
221221

222-
1. Put your `<script src="zxcvbn.js">` tag at the end of your html, just before the closing `</body>` tag. This insures your page loads and renders before the browser fetches and loads `zxcvbn.js`. The downside with this approach is `zxcvbn()` becomes available later than had it been included in `<head>`not an issue on most signup pages where users are filling out other fields first.
222+
1. Put your `<script src="zxcvbn.js">` tag at the end of your html, just before the closing `</body>` tag. This ensures your page loads and renders before the browser fetches and loads `zxcvbn.js`. The downside with this approach is `zxcvbn()` becomes available later than had it been included in `<head>`not an issue on most signup pages where users are filling out other fields first.
223223

224224
2. If you're using RequireJS, try loading `zxcvbn.js` separately from your main bundle. Something to watch out for: if `zxcvbn.js` is required inside a keyboard handler waiting for user input, the entire script might be loaded only after the user presses their first key, creating nasty latency. Avoid this by calling your handler once upon page load, independent of user input, such that the `requirejs()` call runs earlier.
225225

0 commit comments

Comments
 (0)