Unhide material icons once the font has loaded
parent
ad4bc04bfb
commit
ecf91ff6a0
|
@ -1030,3 +1030,11 @@ function post(path, params, method='post') {
|
|||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
}
|
||||
|
||||
const font = new FontFaceObserver('Material Icons', { weight: 400 });
|
||||
font.load().then(function () {
|
||||
console.log('Font is available');
|
||||
$j('.material-icons').css('display','inline-block');
|
||||
}, function () {
|
||||
console.log('Font is not available');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue