font load detection
This commit is contained in:
@@ -85,3 +85,15 @@ function initializeCards() {
|
||||
}
|
||||
|
||||
window.onload = initializeCards;
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
const materialIcons = new FontFaceObserver('Material Symbols Rounded');
|
||||
|
||||
materialIcons.load().then(() => {
|
||||
document.querySelectorAll('.feature-card.hidden').forEach(el => {
|
||||
el.classList.remove('hidden');
|
||||
});
|
||||
}).catch(() => {
|
||||
console.error('Material Symbols Rounded font failed to load.');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user