Skip to content

Commit

Permalink
feat: hidden class to FOUC
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Apr 26, 2021
1 parent a478dc7 commit 2bfa63a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions public/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
},

Expand All @@ -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');
});
},

Expand Down

0 comments on commit 2bfa63a

Please sign in to comment.