MediaWiki:Vector.js

var preconnect_link_1 = document.createElement("link"); var preconnect_link_2 = document.createElement("link"); var main_link = document.createElement("link");

preconnect_link_1.rel = "preconnect"; preconnect_link_2.rel = "preconnect"; main_link.rel = "stylesheet";

preconnect_link_1.href = "https://fonts.googleapis.com"; preconnect_link_2.href = "https://fonts.gstatic.com"; main_link.href = "https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap";

preconnect_link_2.crossorigin = true;

document.head.appendChild(preconnect_link_1); document.head.appendChild(preconnect_link_2); document.head.appendChild(main_link);