Index: i18n.js |
=================================================================== |
--- a/i18n.js |
+++ b/i18n.js |
@@ -43,8 +43,11 @@ function i18n_timeDateStrings(when) { |
var timeString = d.toLocaleTimeString(); |
var now = new Date(); |
if (d.toDateString() == now.toDateString()) |
return [timeString]; |
else |
return [timeString, d.toLocaleDateString()]; |
} |
+ |
+// Fill in the strings as soon as possible |
+window.addEventListener("DOMContentLoaded", loadI18nStrings, true); |