On the contrary, '@' really works in @import url(...) ------------------------------------------------------------------------------ const str="@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Noto+Serif+JP:wght@200&display=swap');"; insertCssRule(str); ------------------------------------------------------------------------------