• anatman

    (@anatman)


    Why does WP use:
    style
    @import url(urlhere)
    /style
    Instead of
    link rel=”stylesheet” type=”text/css” media=”screen” href=”urlhere”
    I ask because i read an article in ALA about changing stylesheets with javascript, and i would like to try that, but i am not sure if i will break something in WP if i change the way it links (or imports) the stylesheet…
    Thanks,
    Eduardo

Viewing 5 replies - 1 through 5 (of 5 total)
  • charle97

    (@charle97)

    i changed to the link rel version and wp seems to be working fine.

    Thread Starter anatman

    (@anatman)

    I am checking it locally, seems fine too. Just wondering why, oh why, in the middle of all those link rels, the devs chose to import the css like that.

    Anonymous

    it’s something to do with netscape hack

    eric

    (@eric)

    never stopped me… course i don’t steal, just look for inspiration 🙂

    Thread Starter anatman

    (@anatman)

    Ok then, i will go with link rel. I can’t create anything worth being stolen anyway 🙂
    Thank you chrale97, eric and anon for the info.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘link rel’ is closed to new replies.