css - How to proper load custom fonts on website -
i'm declaring custom font inside css file, using @import , assigning them elements:
i not have access head tag of site, i'm doing in body...
this not work.., question custom font must declared in head of page in order load?
using jvascript
(function loadcss(url) { var link = document.createelement("link"), url = "app/components/core-jasmine/jasmine.css"; link.type = "text/css"; link.rel = "stylesheet"; link.href = url; document.getelementsbytagname("head")[0].appendchild(link); })();
Comments
Post a Comment