Skip to content

Node.js based forum software built for the modern web

feat: `hidden` class to FOUC

psychobunny2bfa63aecf78
diff --git a/public/src/utils.js b/public/src/utils.js
index 56b4c46573..fa9864ac5c 100644
--- a/public/src/utils.js
+++ b/public/src/utils.js
@@ -469,7 +469,9 @@
makeNumbersHumanReadable: function (elements) {
elements.each(function () {
- $(this).html(utils.makeNumberHumanReadable($(this).attr('title')));
+ $(this)
+ .html(utils.makeNumberHumanReadable($(this).attr('title')))
+ .removeClass('hidden');
});
},
@@ -488,7 +490,9 @@
addCommasToNumbers: function (elements) {
elements.each(function (index, element) {
- $(element).html(utils.addCommas($(element).html()));
+ $(element)
+ .html(utils.addCommas($(element).html()))
+ .removeClass('hidden');
});
},