This commit has been accessed 677 times via Git panel.
commit 643ebb1b10f1fdc74e418c4bec3bec4a1832e3d6
tree a34c9ed1c861ac919a2ec55101595156ce6d7ad6
parent 3cbcb87908247e981ce82bd3b010adb10068ab77
author Engels Antonio <engels@majcms.org> 1343106706 +0800
committer Engels Antonio <engels@majcms.org> 1343106706 +0800
Enable asynchronous loading of kartero-zxcvbn.js
diff --git a/index.php b/index.php
index 7b84c27..7666bc1 100644
--- a/index.php
+++ b/index.php
@@ -1245,7 +1245,7 @@ echo "</tr>";
echo "</td></tr></table>";
echo "</div>";
- echo "<script type=\"text/javascript\" src=\"kartero-zxcvbn.js\"></script>";
+ echo "<script type=\"text/javascript\" src=\"kartero-zxcvbn.js\" async></script>";
echo "<style> @-webkit-keyframes strength { 0% { width: 0; } } @-moz-keyframes strength { 0% { width: 0; height: 11px; } } #mtr { width: 0; height: 11px; padding: 0; margin: 0; -webkit-animation-name: strength; -moz-animation-name: strength; -webkit-animation-duration: 1s; -moz-animation-duration: 1s; -webkit-animation-iteration-count: 1; -moz-animation-iteration-count: 1; -webkit-animation-timing-function: ease; -moz-animation-timing-function: ease; } </style>";
tree a34c9ed1c861ac919a2ec55101595156ce6d7ad6
parent 3cbcb87908247e981ce82bd3b010adb10068ab77
author Engels Antonio <engels@majcms.org> 1343106706 +0800
committer Engels Antonio <engels@majcms.org> 1343106706 +0800
Enable asynchronous loading of kartero-zxcvbn.js
diff --git a/index.php b/index.php
index 7b84c27..7666bc1 100644
--- a/index.php
+++ b/index.php
@@ -1245,7 +1245,7 @@ echo "</tr>";
echo "</td></tr></table>";
echo "</div>";
- echo "<script type=\"text/javascript\" src=\"kartero-zxcvbn.js\"></script>";
+ echo "<script type=\"text/javascript\" src=\"kartero-zxcvbn.js\" async></script>";
echo "<style> @-webkit-keyframes strength { 0% { width: 0; } } @-moz-keyframes strength { 0% { width: 0; height: 11px; } } #mtr { width: 0; height: 11px; padding: 0; margin: 0; -webkit-animation-name: strength; -moz-animation-name: strength; -webkit-animation-duration: 1s; -moz-animation-duration: 1s; -webkit-animation-iteration-count: 1; -moz-animation-iteration-count: 1; -webkit-animation-timing-function: ease; -moz-animation-timing-function: ease; } </style>";