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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -