(Created page with "→Any JavaScript here will be loaded for all users on every page load.: const style = document.createElement('style'); style.innerHTML = ` @import url('https://fonts.googleapis.com/css2?family=Buda:wght@300&display=swap'); `; document.head.appendChild(style);") |
No edit summary |
||
Line 2: | Line 2: | ||
const style = document.createElement('style'); | const style = document.createElement('style'); | ||
style.innerHTML = ` | style.innerHTML = ` | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | |||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |||
<link href="https://fonts.googleapis.com/css2?family=Buda:wght@300&display=swap" rel="stylesheet"> | |||
`; | `; | ||
document.head.appendChild(style); | document.head.appendChild(style); |
Revision as of 00:58, 27 June 2024
/* Any JavaScript here will be loaded for all users on every page load. */
const style = document.createElement('style');
style.innerHTML = `
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Buda:wght@300&display=swap" rel="stylesheet">
`;
document.head.appendChild(style);